diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java index 54c148ab..345abe72 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java @@ -1942,6 +1942,28 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe case StandardInterpretCommon.INTERPRETING_PEOPLE_FILLOUT: boolean pass = (boolean) map.get(StandardInterpretCommon.PASS); if (pass){ +// List idsNotNull = new ArrayList<>(); +// List idsNull = new ArrayList<>(); +// List ids = processStandardInterpretClauseSublistList.stream().map(ProcessStandardInterpretClauseSublist::getId).collect(Collectors.toList()); +// List listData = processStandardInterpretClauseSublistService.listByIds(ids); +// if(!CollectionUtils.isEmpty(listData)){ +// List idsNew = listData.stream().map(ProcessStandardInterpretClauseSublist::getId).collect(Collectors.toList()); +// processStandardInterpretClauseSublistList.forEach(p->{ +// if(idsNew.contains(p.getId())){ +// idsNotNull.add(p); +// }else{ +// idsNull.add(p); +// } +// }); +// } +// if(!CollectionUtils.isEmpty(idsNotNull)){ +// processStandardInterpretClauseSublistService.updateBatchById(idsNotNull); +// } +// +// if(!CollectionUtils.isEmpty(idsNull)){ +// processStandardInterpretClauseSublistService.saveBatch(idsNull); +// } + processStandardInterpretClauseSublistList.stream().map(ProcessStandardInterpretClauseSublist::getId).collect(Collectors.toList()); processStandardInterpretClauseSublistService .saveOrUpdateBatch(processStandardInterpretClauseSublistList); }