|
|
@@ -39,6 +39,34 @@
|
|
|
WHERE id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+ <update id="updateCirculate" parameterType="com.sckw.transport.model.KwtLogisticsOrderCirculate">
|
|
|
+ UPDATE kwt_logistics_order_circulate
|
|
|
+ <set>
|
|
|
+ <if test="null != entId and '' != entId">ent_id = #{entId},</if>
|
|
|
+ <if test="null != lOrderId and '' != lOrderId">l_order_id = #{lOrderId},</if>
|
|
|
+ <if test="null != wOrderId and '' != wOrderId">w_order_id = #{wOrderId},</if>
|
|
|
+ <if test="null != type and '' != type">type = #{type},</if>
|
|
|
+ <if test="null != truckId and '' != truckId">truck_id = #{truckId},</if>
|
|
|
+ <if test="null != truckNo and '' != truckNo">truck_no = #{truckNo},</if>
|
|
|
+ <if test="null != driverId and '' != driverId">driver_id = #{driverId},</if>
|
|
|
+ <if test="null != driverName and '' != driverName">driver_name = #{driverName},</if>
|
|
|
+ <if test="null != driverPhone and '' != driverPhone">driver_phone = #{driverPhone},</if>
|
|
|
+ <if test="null != driverIdcard and '' != driverIdcard">driver_idcard = #{driverIdcard},</if>
|
|
|
+ <if test="null != startTime and '' != startTime">start_time = #{startTime},</if>
|
|
|
+ <if test="null != endTime and '' != endTime">end_time = #{endTime},</if>
|
|
|
+ <if test="null != entrustAmount and '' != entrustAmount">entrust_amount = #{entrustAmount},</if>
|
|
|
+ <if test="null != totalTake and '' != totalTake">total_take = #{totalTake},</if>
|
|
|
+ <if test="null != remark and '' != remark">remark = #{remark},</if>
|
|
|
+ <if test="null != status and '' != status">status = #{status},</if>
|
|
|
+ <if test="null != createBy and '' != createBy">create_by = #{createBy},</if>
|
|
|
+ <if test="null != createTime and '' != createTime">create_time = #{createTime},</if>
|
|
|
+ <if test="null != updateBy and '' != updateBy">update_by = #{updateBy},</if>
|
|
|
+ <if test="null != updateTime and '' != updateTime">update_time = #{updateTime},</if>
|
|
|
+ <if test="null != delFlag and '' != delFlag">del_flag = #{delFlag}</if>
|
|
|
+ </set>
|
|
|
+ WHERE id = #{id}
|
|
|
+ </update>
|
|
|
+
|
|
|
<select id="selectDriverOrderByStatus" resultType="java.lang.Long">
|
|
|
SELECT b.w_order_id as wOrderId
|
|
|
FROM kwt_waybill_order a
|