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);