| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.sckw.transport.dao.KwtLogisticsOrderAddressDao">
- <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtLogisticsOrderAddress">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="order_id" jdbcType="BIGINT" property="orderId" />
- <result column="address_type" jdbcType="INTEGER" property="addressType" />
- <result column="name" jdbcType="VARCHAR" property="name" />
- <result column="type" jdbcType="BIGINT" property="type" />
- <result column="contacts" jdbcType="VARCHAR" property="contacts" />
- <result column="phone" jdbcType="VARCHAR" property="phone" />
- <result column="city_code" jdbcType="INTEGER" property="cityCode" />
- <result column="city_name" jdbcType="VARCHAR" property="cityName" />
- <result column="detail_address" jdbcType="VARCHAR" property="detailAddress" />
- <result column="lat" jdbcType="VARCHAR" property="lat" />
- <result column="lng" jdbcType="VARCHAR" property="lng" />
- <result column="fence" jdbcType="VARCHAR" property="fence" />
- <result column="entry_type" jdbcType="INTEGER" property="entryType" />
- <result column="remark" jdbcType="VARCHAR" property="remark" />
- <result column="status" jdbcType="INTEGER" property="status" />
- <result column="create_by" jdbcType="BIGINT" property="createBy" />
- <result column="create_time" jdbcType="TIMESTAMP" property="createTime" />
- <result column="update_by" jdbcType="BIGINT" property="updateBy" />
- <result column="update_time" jdbcType="TIMESTAMP" property="updateTime" />
- <result column="del_flag" jdbcType="INTEGER" property="delFlag" />
- </resultMap>
- <sql id="Base_Column_List">
- id, order_id, address_type, `name`, `type`, contacts, phone, city_code, city_name,
- detail_address, lat, lng, fence, entry_type, remark, `status`, create_by, create_time,
- update_by, update_time, del_flag
- </sql>
- <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
- select
- <include refid="Base_Column_List" />
- from kwt_logistics_order_address
- where id = #{id,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from kwt_logistics_order_address
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <insert id="insert" parameterType="com.sckw.transport.model.KwtLogisticsOrderAddress">
- insert into kwt_logistics_order_address (id, order_id, address_type,
- `name`, `type`, contacts,
- phone, city_code, city_name,
- detail_address, lat, lng,
- fence, entry_type, remark,
- `status`, create_by, create_time,
- update_by, update_time, del_flag
- )
- values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{addressType,jdbcType=INTEGER},
- #{name,jdbcType=VARCHAR}, #{type,jdbcType=BIGINT}, #{contacts,jdbcType=VARCHAR},
- #{phone,jdbcType=VARCHAR}, #{cityCode,jdbcType=INTEGER}, #{cityName,jdbcType=VARCHAR},
- #{detailAddress,jdbcType=VARCHAR}, #{lat,jdbcType=VARCHAR}, #{lng,jdbcType=VARCHAR},
- #{fence,jdbcType=VARCHAR}, #{entryType,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR},
- #{status,jdbcType=INTEGER}, #{createBy,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP},
- #{updateBy,jdbcType=BIGINT}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=INTEGER}
- )
- </insert>
- <insert id="insertSelective" parameterType="com.sckw.transport.model.KwtLogisticsOrderAddress">
- insert into kwt_logistics_order_address
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="orderId != null">
- order_id,
- </if>
- <if test="addressType != null">
- address_type,
- </if>
- <if test="name != null">
- `name`,
- </if>
- <if test="type != null">
- `type`,
- </if>
- <if test="contacts != null">
- contacts,
- </if>
- <if test="phone != null">
- phone,
- </if>
- <if test="cityCode != null">
- city_code,
- </if>
- <if test="cityName != null">
- city_name,
- </if>
- <if test="detailAddress != null">
- detail_address,
- </if>
- <if test="lat != null">
- lat,
- </if>
- <if test="lng != null">
- lng,
- </if>
- <if test="fence != null">
- fence,
- </if>
- <if test="entryType != null">
- entry_type,
- </if>
- <if test="remark != null">
- remark,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="createTime != null">
- create_time,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="updateTime != null">
- update_time,
- </if>
- <if test="delFlag != null">
- del_flag,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="id != null">
- #{id,jdbcType=BIGINT},
- </if>
- <if test="orderId != null">
- #{orderId,jdbcType=BIGINT},
- </if>
- <if test="addressType != null">
- #{addressType,jdbcType=INTEGER},
- </if>
- <if test="name != null">
- #{name,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- #{type,jdbcType=BIGINT},
- </if>
- <if test="contacts != null">
- #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="phone != null">
- #{phone,jdbcType=VARCHAR},
- </if>
- <if test="cityCode != null">
- #{cityCode,jdbcType=INTEGER},
- </if>
- <if test="cityName != null">
- #{cityName,jdbcType=VARCHAR},
- </if>
- <if test="detailAddress != null">
- #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="lat != null">
- #{lat,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- #{lng,jdbcType=VARCHAR},
- </if>
- <if test="fence != null">
- #{fence,jdbcType=VARCHAR},
- </if>
- <if test="entryType != null">
- #{entryType,jdbcType=INTEGER},
- </if>
- <if test="remark != null">
- #{remark,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- #{createBy,jdbcType=BIGINT},
- </if>
- <if test="createTime != null">
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- #{updateBy,jdbcType=BIGINT},
- </if>
- <if test="updateTime != null">
- #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- #{delFlag,jdbcType=INTEGER},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.sckw.transport.model.KwtLogisticsOrderAddress">
- update kwt_logistics_order_address
- <set>
- <if test="orderId != null">
- order_id = #{orderId,jdbcType=BIGINT},
- </if>
- <if test="addressType != null">
- address_type = #{addressType,jdbcType=INTEGER},
- </if>
- <if test="name != null">
- `name` = #{name,jdbcType=VARCHAR},
- </if>
- <if test="type != null">
- `type` = #{type,jdbcType=BIGINT},
- </if>
- <if test="contacts != null">
- contacts = #{contacts,jdbcType=VARCHAR},
- </if>
- <if test="phone != null">
- phone = #{phone,jdbcType=VARCHAR},
- </if>
- <if test="cityCode != null">
- city_code = #{cityCode,jdbcType=INTEGER},
- </if>
- <if test="cityName != null">
- city_name = #{cityName,jdbcType=VARCHAR},
- </if>
- <if test="detailAddress != null">
- detail_address = #{detailAddress,jdbcType=VARCHAR},
- </if>
- <if test="lat != null">
- lat = #{lat,jdbcType=VARCHAR},
- </if>
- <if test="lng != null">
- lng = #{lng,jdbcType=VARCHAR},
- </if>
- <if test="fence != null">
- fence = #{fence,jdbcType=VARCHAR},
- </if>
- <if test="entryType != null">
- entry_type = #{entryType,jdbcType=INTEGER},
- </if>
- <if test="remark != null">
- remark = #{remark,jdbcType=VARCHAR},
- </if>
- <if test="status != null">
- `status` = #{status,jdbcType=INTEGER},
- </if>
- <if test="createBy != null">
- create_by = #{createBy,jdbcType=BIGINT},
- </if>
- <if test="createTime != null">
- create_time = #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy,jdbcType=BIGINT},
- </if>
- <if test="updateTime != null">
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- </if>
- <if test="delFlag != null">
- del_flag = #{delFlag,jdbcType=INTEGER},
- </if>
- </set>
- where id = #{id,jdbcType=BIGINT}
- </update>
- <update id="updateByPrimaryKey" parameterType="com.sckw.transport.model.KwtLogisticsOrderAddress">
- update kwt_logistics_order_address
- set order_id = #{orderId,jdbcType=BIGINT},
- address_type = #{addressType,jdbcType=INTEGER},
- `name` = #{name,jdbcType=VARCHAR},
- `type` = #{type,jdbcType=BIGINT},
- contacts = #{contacts,jdbcType=VARCHAR},
- phone = #{phone,jdbcType=VARCHAR},
- city_code = #{cityCode,jdbcType=INTEGER},
- city_name = #{cityName,jdbcType=VARCHAR},
- detail_address = #{detailAddress,jdbcType=VARCHAR},
- lat = #{lat,jdbcType=VARCHAR},
- lng = #{lng,jdbcType=VARCHAR},
- fence = #{fence,jdbcType=VARCHAR},
- entry_type = #{entryType,jdbcType=INTEGER},
- remark = #{remark,jdbcType=VARCHAR},
- `status` = #{status,jdbcType=INTEGER},
- create_by = #{createBy,jdbcType=BIGINT},
- create_time = #{createTime,jdbcType=TIMESTAMP},
- update_by = #{updateBy,jdbcType=BIGINT},
- update_time = #{updateTime,jdbcType=TIMESTAMP},
- del_flag = #{delFlag,jdbcType=INTEGER}
- where id = #{id,jdbcType=BIGINT}
- </update>
- </mapper>
|