whycxzp
2022-08-11 250eb9393c3356cc68d1c4c0664b80fd36ae7334
src/main/java/com/whyc/service/WorksheetMainService.java
@@ -215,10 +215,10 @@
        List<ComponentApproving> cApprovingList = main.getCApprovingList();
        //查询是否有 已生效或者已提交审批的 相同的散装件
        List<Component> existComponentList = new LinkedList<>();
        List<ComponentApproving> existCAList = cApprovingService.getList();
        List<ComponentApproving> existCAList = new LinkedList<>();
        List<Component> componentList = cService.getList();
        List<ComponentApproving> cAList = cApprovingService.getList();
        List<ComponentApproving> cAList = cApprovingService.getListByStatus(1);
        for (int i = 0; i < cApprovingList.size(); i++) {
            ComponentApproving componentApproving = cApprovingList.get(i);
            for (int j = 0; j < componentList.size(); j++) {
@@ -302,7 +302,9 @@
        }
        //散装件-审批提交
        cApprovingList.forEach(cApproving->{
            cApproving.setCreateDate(new Date());
            cApproving.setMainId(main.getId());
            cApproving.setStatus(1);
        });
        cApprovingService.insert(cApprovingList);