Commit 0149540c by liuyang

2024-10-08 委外入库提交修复

parent 39d36a48
...@@ -132,7 +132,7 @@ public class ServiceHGSC010 extends ServiceEPBase { ...@@ -132,7 +132,7 @@ public class ServiceHGSC010 extends ServiceEPBase {
for (HGSC010 hgsc010: resultMaps) { for (HGSC010 hgsc010: resultMaps) {
List<HGSC010A> hgsc010AList = hgsc010As.stream().filter(item -> item.getParentId().equals(hgsc010.getId())).collect(Collectors.toList()); List<HGSC010A> hgsc010AList = hgsc010As.stream().filter(item -> item.getParentId().equals(hgsc010.getId())).collect(Collectors.toList());
List<HGSC010B> hgsc010BList = hgsc010Bs.stream().filter(item -> item.getParentId().equals(hgsc010.getId())).collect(Collectors.toList()); List<HGSC010B> hgsc010BList = hgsc010Bs.stream().filter(item -> item.getParentId().equals(hgsc010.getId())).collect(Collectors.toList());
AssertUtils.isTrue(hgsc010AList.size()<= 0 || hgsc010BList.size()<= 0, "请先添加成本委托明细或者原料委托明细"); AssertUtils.isTrue(hgsc010AList.size()<= 0 && hgsc010BList.size()<= 0, "请先添加成本委托明细或者原料委托明细");
hgsc010.setSubStatus(CommonConstant.YesNo.YES_1); hgsc010.setSubStatus(CommonConstant.YesNo.YES_1);
DaoUtils.update("HGSC010.updateBySubStatus", hgsc010.toMap()); DaoUtils.update("HGSC010.updateBySubStatus", hgsc010.toMap());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment