123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?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.bz.smart_city.dao.ShipReceiptMapper">
- <resultMap id="BaseResultMap" type="com.bz.smart_city.entity.ShipReceipt">
- <!--@mbg.generated-->
- <id column="id" property="id" />
- <result column="ship_receipt_no" property="shipReceiptNo" />
- <result column="send_user_name" property="sendUserName" />
- <result column="send_user_phone" property="sendUserPhone" />
- <result column="ship_company" property="shipCompany" />
- <result column="receive_address" property="receiveAddress" />
- <result column="receive_user_name" property="receiveUserName" />
- <result column="receive_user_phone" property="receiveUserPhone" />
- <result column="package_num" property="packageNum" />
- <result column="meter_num" property="meterNum" />
- <result column="meter_type" property="meterType" />
- <result column="ship_time" property="shipTime" />
- <result column="receipt_status" property="receiptStatus" />
- <result column="status" property="status" />
- <result column="create_by" property="createBy" />
- <result column="update_by" property="updateBy" />
- <result column="date_create" property="dateCreate" />
- <result column="date_update" property="dateUpdate" />
- </resultMap>
- <sql id="Base_Column_List">
- <!--@mbg.generated-->
- id, ship_receipt_no, send_user_name, send_user_phone, ship_company, receive_address,
- receive_user_name, receive_user_phone, package_num, meter_num, meter_type, ship_time,
- receipt_status, `status`, create_by, update_by, date_create, date_update
- </sql>
- <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.bz.smart_city.entity.ShipReceipt" useGeneratedKeys="true">
- <!--@mbg.generated-->
- insert into sc_ship_receipt
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="shipReceiptNo != null">
- ship_receipt_no,
- </if>
- <if test="sendUserName != null">
- send_user_name,
- </if>
- <if test="sendUserPhone != null">
- send_user_phone,
- </if>
- <if test="shipCompany != null">
- ship_company,
- </if>
- <if test="receiveAddress != null">
- receive_address,
- </if>
- <if test="receiveUserName != null">
- receive_user_name,
- </if>
- <if test="receiveUserPhone != null">
- receive_user_phone,
- </if>
- <if test="packageNum != null">
- package_num,
- </if>
- <if test="meterNum != null">
- meter_num,
- </if>
- <if test="meterType != null">
- meter_type,
- </if>
- <if test="shipTime != null">
- ship_time,
- </if>
- <if test="receiptStatus != null">
- receipt_status,
- </if>
- <if test="status != null">
- `status`,
- </if>
- <if test="createBy != null">
- create_by,
- </if>
- <if test="updateBy != null">
- update_by,
- </if>
- <if test="dateCreate != null">
- date_create,
- </if>
- <if test="dateUpdate != null">
- date_update,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides=",">
- <if test="shipReceiptNo != null">
- #{shipReceiptNo},
- </if>
- <if test="sendUserName != null">
- #{sendUserName},
- </if>
- <if test="sendUserPhone != null">
- #{sendUserPhone},
- </if>
- <if test="shipCompany != null">
- #{shipCompany},
- </if>
- <if test="receiveAddress != null">
- #{receiveAddress},
- </if>
- <if test="receiveUserName != null">
- #{receiveUserName},
- </if>
- <if test="receiveUserPhone != null">
- #{receiveUserPhone},
- </if>
- <if test="packageNum != null">
- #{packageNum},
- </if>
- <if test="meterNum != null">
- #{meterNum},
- </if>
- <if test="meterType != null">
- #{meterType},
- </if>
- <if test="shipTime != null">
- #{shipTime},
- </if>
- <if test="receiptStatus != null">
- #{receiptStatus},
- </if>
- <if test="status != null">
- #{status},
- </if>
- <if test="createBy != null">
- #{createBy},
- </if>
- <if test="updateBy != null">
- #{updateBy},
- </if>
- <if test="dateCreate != null">
- #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- #{dateUpdate},
- </if>
- </trim>
- </insert>
- <update id="updateByPrimaryKeySelective" parameterType="com.bz.smart_city.entity.ShipReceipt">
- <!--@mbg.generated-->
- update sc_ship_receipt
- <set>
- <if test="shipReceiptNo != null">
- ship_receipt_no = #{shipReceiptNo},
- </if>
- <if test="sendUserName != null">
- send_user_name = #{sendUserName},
- </if>
- <if test="sendUserPhone != null">
- send_user_phone = #{sendUserPhone},
- </if>
- <if test="shipCompany != null">
- ship_company = #{shipCompany},
- </if>
- <if test="receiveAddress != null">
- receive_address = #{receiveAddress},
- </if>
- <if test="receiveUserName != null">
- receive_user_name = #{receiveUserName},
- </if>
- <if test="receiveUserPhone != null">
- receive_user_phone = #{receiveUserPhone},
- </if>
- <if test="packageNum != null">
- package_num = #{packageNum},
- </if>
- <if test="meterNum != null">
- meter_num = #{meterNum},
- </if>
- <if test="meterType != null">
- meter_type = #{meterType},
- </if>
- <if test="shipTime != null">
- ship_time = #{shipTime},
- </if>
- <if test="receiptStatus != null">
- receipt_status = #{receiptStatus},
- </if>
- <if test="status != null">
- `status` = #{status},
- </if>
- <if test="createBy != null">
- create_by = #{createBy},
- </if>
- <if test="updateBy != null">
- update_by = #{updateBy},
- </if>
- <if test="dateCreate != null">
- date_create = #{dateCreate},
- </if>
- <if test="dateUpdate != null">
- date_update = #{dateUpdate},
- </if>
- </set>
- where id = #{id}
- </update>
- </mapper>
|