From d5f0bd9f828a8aebc5097f7832993441e04d0726 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Fri, 20 Sep 2024 17:28:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretFlowServiceImpl.java | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) 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); }