From 7ad4b3cb3848a8a3ee18f117f453060b9530bfba Mon Sep 17 00:00:00 2001 From: CZT <czt18638530771@163.com> Date: 星期一, 31 七月 2023 09:46:24 +0800 Subject: [PATCH] 新增贝博粮情协议--整体框架提交 --- igds-inout/src/main/java/com/ld/igds/inout/service/impl/InoutServiceImpl.java | 19 +++++++++++++++++-- 1 files changed, 17 insertions(+), 2 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 0b5efca..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; } @@ -292,7 +295,7 @@ } // 娓呴櫎缂撳瓨 - this.delFromCache(param.getDeptId(), param.getType(), param.getId()); +// this.delFromCache(param.getDeptId(), param.getType(), param.getId()); inoutMapper.toComplete(param); @@ -712,4 +715,16 @@ } return inoutCheckMapper.getPrice(param); } + + @Override + public InoutCheckData inoutDataByCheckId(InoutCheckParam param) throws Exception { + List<InoutCheckData> list = inoutCheckMapper.inoutDataByCheckId(param); + if (null == list || list.size() == 0) + return null; + if (list.size() == 1) { + return list.get(0); + } else { + throw new Exception("褰撳墠鏉′欢涓嬪瓨鍦ㄥ涓弧瓒虫潯浠剁殑鏁版嵁锛岃鏍告煡锛侊紒"); + } + } } -- Gitblit v1.9.3