feat: 企标更改流程驳回后再次提交 校验主起草单位

This commit is contained in:
2024-05-10 17:03:56 +08:00
parent aef003b3de
commit 25e8d6d42a
@@ -293,6 +293,13 @@ public class ProcessEsChangeServiceImpl extends ServiceImpl<ProcessEsChangeMappe
ProcessApprovalRecord record = actFlowCommonService.getNodeIdByTaskId(taskId);
String xmlNodeId = record.getNodeId();
if (xmlNodeId.equals(MAIN_DRAFT_USER_START)) {
// 判断主起草单位
actFlowCommonService.checkStandardState(data.getStandardId());
// 判断主起草部门是否有对应的修改单代码
if (StrUtil.isBlank(data.getMainDraftingUnit())) {
throw new JeroBootException("主起草单位不能为空");
}
this.validDepartCode(changeData.getData().getMainDraftingUnit());
// 清理原来的修改意见
LambdaQueryWrapper<EsChangeOpinion> esChangeOpinionLambdaQueryWrapper = new LambdaQueryWrapper<>();
esChangeOpinionLambdaQueryWrapper.eq(EsChangeOpinion::getBusinessId, data.getId());