From ac6bac90b9f93916122cf54ccdfae536d34580db Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Tue, 16 Jul 2024 16:15:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB?= =?UTF-8?q?=E6=B5=81=E7=A8=8B):=20=E4=B8=8D=E5=8F=91=E8=B5=B7=EF=BC=8C?= =?UTF-8?q?=E4=BF=9D=E5=AD=98=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardInterpretFlowServiceImpl.java | 26 +++++++++++++++++++ 1 file changed, 26 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 442f5555..81c7f718 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 @@ -1202,6 +1202,32 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe processStandardInterpretClauseSublistService.removeByIds(processAllDelIds); switch (node){ + // 法规工程师发起 + case StandardInterpretCommon.REGULATORY_ENGINEER_START: + SarFileSplitInfoEO sarFileSplitInfoEO = + sarFileSplitInfoService.getOne(new LambdaQueryWrapper() + .eq(SarFileSplitInfoEO::getStandardId, processStandardInterpret.getStandardId()) + .eq(SarFileSplitInfoEO::getFileType, processStandardInterpret.getDecompositionSource()) + .isNull(SarFileSplitInfoEO::getPublishBeforeId), false); + if (!Objects.isNull(sarFileSplitInfoEO)){ + processStandardInterpret.setSplitInfoId(sarFileSplitInfoEO.getId()); + } + processStandardInterpretService.saveOrUpdate(processStandardInterpret); + // 如果没选择条款 + if (CollectionUtils.isEmpty(processStandardInterpretClauseList)){ + processStandardInterpret.setChooseClause(YesOrNoEnum.NO.getValue()); + // 自动保存所有条款 + processStandardInterpretClauseList = + getClauseList(processStandardInterpret.getStandardId(), + processStandardInterpret.getDecompositionSource()); + } + // 设置关联关系 + for (ProcessStandardInterpretClause standardInterpretClause : processStandardInterpretClauseList) { + standardInterpretClause.setDecompositionSource(processStandardInterpret.getDecompositionSource()); + standardInterpretClause.setStandardInterpretId(standardInterpretId); + } + processStandardInterpretClauseService.saveOrUpdateBatch(processStandardInterpretClauseList); + break; // 主控部门联络人分发 case StandardInterpretCommon.CONTACT_PERSON_DISTRIBUTE: processStandardInterpretService.updateById(processStandardInterpret);