fix(标准解读流程): 不发起,保存问题修复
This commit is contained in:
+26
@@ -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<SarFileSplitInfoEO>()
|
||||
.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);
|
||||
|
||||
Reference in New Issue
Block a user