From 88112ac2061d48116f2e81a00d6154ca4435a777 Mon Sep 17 00:00:00 2001 From: gongbx Date: Wed, 8 May 2024 10:03:08 +0800 Subject: [PATCH] =?UTF-8?q?opt:=E4=BF=AE=E6=94=B9=E6=AD=A3=E5=BC=8F?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E7=9B=B8=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../eas/service/impl/EasOutInBillDetailServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java b/nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java index 786f5c2..04d919c 100644 --- a/nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java +++ b/nlsso-server/src/main/java/org/nl/wms/database/eas/service/impl/EasOutInBillDetailServiceImpl.java @@ -193,11 +193,13 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl entityLists = entityList.stream().filter(r -> StringUtils.isNotEmpty(r.getKwbm())).collect(Collectors.toList()); Set ids = entityLists.stream().map(EasOutInBillDetailVO::getFlid).collect(Collectors.toSet()); + //需求变更为不可多次审核,否则EAS库存不准确 //ieasOutInBillService.audit(ids,false); + //单据明细为相同规格相同物料批量出入库 if (ids.size() == entityList.size() && ids.size() > 1) { entityList.forEach(r -> { UpdateWrapper updateWrapper = new UpdateWrapper<>(); - //updateWrapper.set("djzt", "审核"); + updateWrapper.set("djzt", "审核"); updateWrapper.eq("flid", r.getFlid()); updateWrapper.set("czsl", r.getSl()); updateWrapper.set("sysl", 0); @@ -213,7 +215,6 @@ public class EasOutInBillDetailServiceImpl extends ServiceImpl updateWrapper = new UpdateWrapper<>(); - //updateWrapper.set("djzt", "审核"); + if(sysl.compareTo(BigDecimal.ZERO)==0) { + updateWrapper.set("djzt", "审核"); + } updateWrapper.eq("flid", entityList.get(0).getFlid()); updateWrapper.set("czsl", czsl); updateWrapper.set("sysl", sysl);