fix: 81953 企标计划立项--修订--发起节点提交需要调整唯一性校验
This commit is contained in:
+8
-2
@@ -2,7 +2,9 @@ package com.jero.modules.activiti.process.esInitChange.listener;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
||||
import com.jero.common.api.vo.ResultCommon;
|
||||
import com.jero.common.constant.enums.YesOrNoEnum;
|
||||
import com.jero.common.exception.JeroBootException;
|
||||
import com.jero.modules.activiti.entity.ProcessAll;
|
||||
import com.jero.modules.activiti.enums.ProcessStatusEnum;
|
||||
import com.jero.modules.activiti.process.esInitChange.entity.ProcessEsInitChange;
|
||||
@@ -78,10 +80,14 @@ public class ProcessESInitChangeEndListener implements ExecutionListener {
|
||||
processEsInitChange.setId(null);
|
||||
processEsInitChange.setProjectStatus(ESPProjectStatus.IN_PROGRESS.getValue());
|
||||
processEsInitChange.setChangeStatus(ESPChangeType.ADD.getValue());
|
||||
if (ESPProjectType.MODIFY.getValue().equals(projectType))
|
||||
if (ESPProjectType.MODIFY.getValue().equals(projectType)) {
|
||||
processEsInitChange.setApplicationCategory(ESPProjectType.MODIFY.getValue());
|
||||
else
|
||||
if (!esUtil.verifyEnStandardNumber(processEsInitChanges.get(0).getNewEnStandardNo())) {
|
||||
throw new JeroBootException(ResultCommon.NEW_EN_STANDARD_NUMBER_CONFLICT);
|
||||
}
|
||||
} else {
|
||||
processEsInitChange.setApplicationCategory(ESPProjectType.ENACT.getValue());
|
||||
}
|
||||
// 设置企业标准代号字段值
|
||||
processEsInitChange.setEnStandardCode(esUtil.getEnStandardCode(processEsInitChange.getNewEnStandardNo()));
|
||||
}
|
||||
|
||||
+5
@@ -370,6 +370,11 @@ public class ProcessEsInitChangeServiceImpl extends ServiceImpl<ProcessEsInitCha
|
||||
throw new JeroBootException(ResultCommon.EN_STANDARD_NUMBER_CONFLICT);
|
||||
}
|
||||
}
|
||||
if (initChange.getProjectType().equals(ESPProjectType.MODIFY.getValue())) {
|
||||
if (!esUtil.verifyEnStandardNumber(initChange.getNewEnStandardNo())) {
|
||||
throw new JeroBootException(ResultCommon.NEW_EN_STANDARD_NUMBER_CONFLICT);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void startRunTask(InitChangeDataVO initChangeData) {
|
||||
|
||||
Reference in New Issue
Block a user