|
|
|
@ -42,6 +42,9 @@
|
|
|
|
|
<if test="editStatus!= null">
|
|
|
|
|
AND editStatus = #{editStatus}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="thirdPartyDate!= null">
|
|
|
|
|
AND thirdPartyDate = #{thirdPartyDate}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="lastUpdateTime!=null and lastUpdateTime!=''">
|
|
|
|
|
<![CDATA[ and DATE_FORMAT(thr_order.updateTime, '%Y-%m-%d %H:%i:%S')>= DATE_FORMAT(#{lastUpdateTime}, '%Y-%m-%d %H:%i:%S') ]]>
|
|
|
|
|
</if>
|
|
|
|
@ -55,7 +58,7 @@
|
|
|
|
|
INTO thr_order
|
|
|
|
|
(id,billNo, billdate, corpId, corpName, billType, billFlag, thirdSysFk, updateTime, originType, unitIdFk,
|
|
|
|
|
startDate, endDate, createUser, reviewUser, address, linkMan, linkTel, remark, remark1, remark2,
|
|
|
|
|
remark3,locStorageCode,editStatus,invWarehouseCode)
|
|
|
|
|
remark3,locStorageCode,editStatus,invWarehouseCode,thirdPartyDate)
|
|
|
|
|
values (
|
|
|
|
|
#{id},
|
|
|
|
|
#{billNo},
|
|
|
|
@ -81,7 +84,8 @@
|
|
|
|
|
#{remark3},
|
|
|
|
|
#{locStorageCode},
|
|
|
|
|
#{editStatus},
|
|
|
|
|
#{invWarehouseCode}
|
|
|
|
|
#{invWarehouseCode},
|
|
|
|
|
#{thirdPartyDate}
|
|
|
|
|
)
|
|
|
|
|
</insert>
|
|
|
|
|
|
|
|
|
@ -145,6 +149,7 @@
|
|
|
|
|
<if test="remark3 != null">remark3=#{remark3},</if>
|
|
|
|
|
<if test="locStorageCode != null">locStorageCode=#{locStorageCode},</if>
|
|
|
|
|
<if test="editStatus != null">editStatus=#{editStatus},</if>
|
|
|
|
|
<if test="thirdPartyDate != null">thirdPartyDate=#{thirdPartyDate},</if>
|
|
|
|
|
<if test="invWarehouseCode != null">invWarehouseCode=#{invWarehouseCode},</if>
|
|
|
|
|
</trim>
|
|
|
|
|
WHERE id = #{id}
|
|
|
|
|