| 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.sckw.transport.dao.KwtWaybillOrderTicketMapper">
- <resultMap id="BaseResultMap" type="com.sckw.transport.model.KwtWaybillOrderTicket">
- <id column="id" jdbcType="BIGINT" property="id" />
- <result column="order_id" jdbcType="BIGINT" property="orderId" />
- <result column="type" jdbcType="INTEGER" property="type" />
- <result column="amount" jdbcType="DECIMAL" property="amount" />
- <result column="gross_amount" jdbcType="DECIMAL" property="grossAmount" />
- <result column="tare_amount" jdbcType="DECIMAL" property="tareAmount" />
- <result column="urls" jdbcType="VARCHAR" property="urls" />
- <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, `type`, amount, gross_amount, tare_amount, urls, 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_waybill_order_ticket
- where id = #{id,jdbcType=BIGINT}
- </select>
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
- delete from kwt_waybill_order_ticket
- where id = #{id,jdbcType=BIGINT}
- </delete>
- <insert id="insert" parameterType="com.sckw.transport.model.KwtWaybillOrderTicket">
- insert into kwt_waybill_order_ticket (id, order_id, `type`,
- amount, gross_amount, tare_amount,
- urls, remark, `status`,
- create_by, create_time, update_by,
- update_time, del_flag)
- values (#{id,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{type,jdbcType=INTEGER},
- #{amount,jdbcType=DECIMAL}, #{grossAmount,jdbcType=DECIMAL}, #{tareAmount,jdbcType=DECIMAL},
- #{urls,jdbcType=VARCHAR}, #{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.KwtWaybillOrderTicket">
- insert into kwt_waybill_order_ticket
- <trim prefix="(" suffix=")" suffixOverrides=",">
- <if test="id != null">
- id,
- </if>
- <if test="orderId != null">
- order_id,
- </if>
- <if test="type != null">
- `type`,
- </if>
- <if test="amount != null">
- amount,
- </if>
- <if test="grossAmount != null">
- gross_amount,
- </if>
- <if test="tareAmount != null">
- tare_amount,
- </if>
- <if test="urls != null">
- urls,
- </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="type != null">
- #{type,jdbcType=INTEGER},
- </if>
- <if test="amount != null">
- #{amount,jdbcType=DECIMAL},
- </if>
- <if test="grossAmount != null">
- #{grossAmount,jdbcType=DECIMAL},
- </if>
- <if test="tareAmount != null">
- #{tareAmount,jdbcType=DECIMAL},
- </if>
- <if test="urls != null">
- #{urls,jdbcType=VARCHAR},
- </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.KwtWaybillOrderTicket">
- update kwt_waybill_order_ticket
- <set>
- <if test="orderId != null">
- order_id = #{orderId,jdbcType=BIGINT},
- </if>
- <if test="type != null">
- `type` = #{type,jdbcType=INTEGER},
- </if>
- <if test="amount != null">
- amount = #{amount,jdbcType=DECIMAL},
- </if>
- <if test="grossAmount != null">
- gross_amount = #{grossAmount,jdbcType=DECIMAL},
- </if>
- <if test="tareAmount != null">
- tare_amount = #{tareAmount,jdbcType=DECIMAL},
- </if>
- <if test="urls != null">
- urls = #{urls,jdbcType=VARCHAR},
- </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.KwtWaybillOrderTicket">
- update kwt_waybill_order_ticket
- set order_id = #{orderId,jdbcType=BIGINT},
- `type` = #{type,jdbcType=INTEGER},
- amount = #{amount,jdbcType=DECIMAL},
- gross_amount = #{grossAmount,jdbcType=DECIMAL},
- tare_amount = #{tareAmount,jdbcType=DECIMAL},
- urls = #{urls,jdbcType=VARCHAR},
- 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>
|