From a4d556ff6f8191637be669e7884fc3e500021516 Mon Sep 17 00:00:00 2001
From: jiazx0107@163.com <jiazx0107@163.com>
Date: 星期四, 22 六月 2023 01:15:28 +0800
Subject: [PATCH] 测试入库流程
---
igds-inout/src/main/resources/mapper/InoutRecordMapper.xml | 27 +++++++++++----------------
1 files changed, 11 insertions(+), 16 deletions(-)
diff --git a/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml b/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml
index 84cec39..387aee5 100644
--- a/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml
+++ b/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml
@@ -143,12 +143,19 @@
<where>
<if test="param.companyId != null and param.companyId != '' ">AND COMPANY_ID_ = #{param.companyId}</if>
<if test="param.depotId != null and param.depotId != '' ">AND DEPOT_ID_ = #{param.depotId}</if>
+ <if test="param.type != null and param.type != '' ">AND TYPE_ = #{param.type}</if>
+ <if test="param.plateNum != null and param.plateNum != '' ">AND PLATE_NUM_ = #{param.plateNum}</if>
+ <if test="param.intelCard != null and param.intelCard != '' ">AND INTEL_CARD_ = #{param.intelCard}</if>
+ <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if>
+ <if test="param.userId != null and param.userId != '' ">AND USER_ID_ = #{param.userId}</if>
+ <if test="param.progress != null and param.progress != '' ">AND PROGRESS_ = #{param.progress}</if>
+ <if test="param.start != null">AND
+ REGISTER_TIME_ <![CDATA[ > ]]>#{param.start,jdbcType=TIMESTAMP}
+ </if>
<if test="param.end != null">AND
COMPLETE_TIME_ <![CDATA[ < ]]>#{param.end,jdbcType=TIMESTAMP}
</if>
- <if test="param.curStorage > 0">AND CUR_STORAGE_ > 0</if>
</where>
- AND PROGRESS_ = 'RECORD'
AND RECORD_STATUS_ != 'ERROR'
AND RECORD_STATUS_ != 'DEL'
ORDER BY COMPLETE_TIME_ DESC
@@ -463,20 +470,8 @@
update D_INOUT_RECORD
set PROGRESS_ = #{param.progress},
COMPLETE_TIME_ =#{param.completeTime},
- <if test="param.fullWeight != null and param.fullWeight > 0">FULL_WEIGHT_ = #{param.fullWeight},</if>
- <if test="param.fullWeightUser != null">FULL_WEIGHT_USER_ = #{param.fullWeightUser},</if>
- <if test="param.fullWeightTime != null">FULL_WEIGHT_TIME_ = #{param.fullWeightTime},</if>
- <if test="param.emptyWeight != null and param.fullWeight > 0">EMPTY_WEIGHT_ = #{param.emptyWeight},</if>
- <if test="param.emptyWeightTime != null">EMPTY_WEIGHT_TIME_ = #{param.emptyWeightTime},</if>
- <if test="param.emptyWeightUser != null">EMPTY_WEIGHT_USER_ = #{param.emptyWeightUser},</if>
- <if test="param.netWeight != null and param.fullWeight > 0">NET_WEIGHT_ = #{param.netWeight},</if>
- <if test="param.settleWeight != null and param.settleWeight > 0">SETTLE_WEIGHT_ = #{param.settleWeight},</if>
- <if test="param.recordWeight != null and param.recordWeight > 0">RECORD_WEIGHT_ = #{param.recordWeight},</if>
- <if test="param.de != null and param.de > 0">DE_SUM_ = #{param.de},</if>
- <if test="param.depotId != null and param.depotId != ''">DEPOT_ID_ = #{param.depotId},</if>
- <if test="param.price != null and param.price > 0">PRICE_ = #{param.price},</if>
- <if test="param.settleMoney != null and param.settleMoney > 0">SETTLE_MONEY_ = #{param.settleMoney},</if>
- COMPLETE_USER_ = #{param.userId}
+ COMPLETE_USER_ = #{param.userId},
+ UPDATE_TIME_ = #{param.updateTime}
where ID_ = #{param.id}
and TYPE_ = #{param.type}
and COMPANY_ID_ = #{param.companyId}
--
Gitblit v1.9.3