| | |
| | | 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++) { |
| | |
| | | } |
| | | //散装件-审批提交 |
| | | cApprovingList.forEach(cApproving->{ |
| | | cApproving.setCreateDate(new Date()); |
| | | cApproving.setMainId(main.getId()); |
| | | cApproving.setStatus(1); |
| | | }); |
| | | |
| | | cApprovingService.insert(cApprovingList); |