|
|
@@ -26,211 +26,4 @@
|
|
|
load_amount, deficit_amount, 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
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
- </select>
|
|
|
- <delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
|
|
|
- delete from kwt_waybill_order
|
|
|
- where id = #{id,jdbcType=BIGINT}
|
|
|
- </delete>
|
|
|
- <insert id="insert" parameterType="com.sckw.transport.model.KwtWaybillOrder">
|
|
|
- insert into kwt_waybill_order (id, ent_id, l_order_id,
|
|
|
- w_order_no, truck_no, driver_id,
|
|
|
- entrust_amount, unload_amount, load_amount,
|
|
|
- deficit_amount, remark, `status`,
|
|
|
- create_by, create_time, update_by,
|
|
|
- update_time, del_flag)
|
|
|
- values (#{id,jdbcType=BIGINT}, #{entId,jdbcType=BIGINT}, #{lOrderId,jdbcType=BIGINT},
|
|
|
- #{wOrderNo,jdbcType=VARCHAR}, #{truckNo,jdbcType=VARCHAR}, #{driverId,jdbcType=BIGINT},
|
|
|
- #{entrustAmount,jdbcType=DECIMAL}, #{unloadAmount,jdbcType=DECIMAL}, #{loadAmount,jdbcType=DECIMAL},
|
|
|
- #{deficitAmount,jdbcType=DECIMAL}, #{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.KwtWaybillOrder">
|
|
|
- insert into kwt_waybill_order
|
|
|
- <trim prefix="(" suffix=")" suffixOverrides=",">
|
|
|
- <if test="id != null">
|
|
|
- id,
|
|
|
- </if>
|
|
|
- <if test="entId != null">
|
|
|
- ent_id,
|
|
|
- </if>
|
|
|
- <if test="lOrderId != null">
|
|
|
- l_order_id,
|
|
|
- </if>
|
|
|
- <if test="wOrderNo != null">
|
|
|
- w_order_no,
|
|
|
- </if>
|
|
|
- <if test="truckNo != null">
|
|
|
- truck_no,
|
|
|
- </if>
|
|
|
- <if test="driverId != null">
|
|
|
- driver_id,
|
|
|
- </if>
|
|
|
- <if test="entrustAmount != null">
|
|
|
- entrust_amount,
|
|
|
- </if>
|
|
|
- <if test="unloadAmount != null">
|
|
|
- unload_amount,
|
|
|
- </if>
|
|
|
- <if test="loadAmount != null">
|
|
|
- load_amount,
|
|
|
- </if>
|
|
|
- <if test="deficitAmount != null">
|
|
|
- deficit_amount,
|
|
|
- </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="entId != null">
|
|
|
- #{entId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="lOrderId != null">
|
|
|
- #{lOrderId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="wOrderNo != null">
|
|
|
- #{wOrderNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="truckNo != null">
|
|
|
- #{truckNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="driverId != null">
|
|
|
- #{driverId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="entrustAmount != null">
|
|
|
- #{entrustAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="unloadAmount != null">
|
|
|
- #{unloadAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="loadAmount != null">
|
|
|
- #{loadAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="deficitAmount != null">
|
|
|
- #{deficitAmount,jdbcType=DECIMAL},
|
|
|
- </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.KwtWaybillOrder">
|
|
|
- update kwt_waybill_order
|
|
|
- <set>
|
|
|
- <if test="entId != null">
|
|
|
- ent_id = #{entId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="lOrderId != null">
|
|
|
- l_order_id = #{lOrderId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="wOrderNo != null">
|
|
|
- w_order_no = #{wOrderNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="truckNo != null">
|
|
|
- truck_no = #{truckNo,jdbcType=VARCHAR},
|
|
|
- </if>
|
|
|
- <if test="driverId != null">
|
|
|
- driver_id = #{driverId,jdbcType=BIGINT},
|
|
|
- </if>
|
|
|
- <if test="entrustAmount != null">
|
|
|
- entrust_amount = #{entrustAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="unloadAmount != null">
|
|
|
- unload_amount = #{unloadAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="loadAmount != null">
|
|
|
- load_amount = #{loadAmount,jdbcType=DECIMAL},
|
|
|
- </if>
|
|
|
- <if test="deficitAmount != null">
|
|
|
- deficit_amount = #{deficitAmount,jdbcType=DECIMAL},
|
|
|
- </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.KwtWaybillOrder">
|
|
|
- update kwt_waybill_order
|
|
|
- set ent_id = #{entId,jdbcType=BIGINT},
|
|
|
- l_order_id = #{lOrderId,jdbcType=BIGINT},
|
|
|
- w_order_no = #{wOrderNo,jdbcType=VARCHAR},
|
|
|
- truck_no = #{truckNo,jdbcType=VARCHAR},
|
|
|
- driver_id = #{driverId,jdbcType=BIGINT},
|
|
|
- entrust_amount = #{entrustAmount,jdbcType=DECIMAL},
|
|
|
- unload_amount = #{unloadAmount,jdbcType=DECIMAL},
|
|
|
- load_amount = #{loadAmount,jdbcType=DECIMAL},
|
|
|
- deficit_amount = #{deficitAmount,jdbcType=DECIMAL},
|
|
|
- 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>
|