From 87690b5dbc08947b8c5cdaa47a1daf46ad85b745 Mon Sep 17 00:00:00 2001 From: YYC <1833023622@qq.com> Date: 星期四, 20 七月 2023 16:29:55 +0800 Subject: [PATCH] 解决称重时质检增扣重不显示 --- igds-inout/src/main/resources/mapper/InoutRecordMapper.xml | 1 + igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java | 5 ++++- 2 files changed, 5 insertions(+), 1 deletions(-) diff --git a/igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java b/igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java index 58e3093..1498368 100644 --- a/igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java +++ b/igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java @@ -20,6 +20,7 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.commons.lang3.time.DateFormatUtils; +import org.apache.xmlbeans.impl.tool.Extension; import org.springframework.beans.BeanUtils; import org.springframework.stereotype.Component; @@ -205,9 +206,11 @@ } inoutMapper.updateDataByHandle(newData); + InoutParam param = new InoutParam(); + param.setId(newData.getId()); //鏇存柊缂撳瓨 - updateInoutCache(newData); + updateInoutCache(inoutMapper.inoutQueryById(param)); return null; } diff --git a/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml b/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml index f4beaba..53ecaf7 100644 --- a/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml +++ b/igds-inout/src/main/resources/mapper/InoutRecordMapper.xml @@ -123,6 +123,7 @@ from D_INOUT_RECORD <where> + <if test="param.id != null and param.id != '' ">AND ID_ = #{param.id}</if> <if test="param.companyId != null and param.companyId != '' ">AND COMPANY_ID_ = #{param.companyId}</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> -- Gitblit v1.9.3