优化修改功能

This commit is contained in:
qitz
2024-02-19 13:57:36 +08:00
parent d014a5e76b
commit 7b7ee0ab63
@@ -482,6 +482,16 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
if (CollectionUtil.isNotEmpty(caseApplication.getColumnValueList())) { if (CollectionUtil.isNotEmpty(caseApplication.getColumnValueList())) {
columnValueMapper.batchUpdate(caseApplication.getColumnValueList()); columnValueMapper.batchUpdate(caseApplication.getColumnValueList());
} }
Integer caseFlowId = caseApplication.getCaseFlowId();
// 查询当前流程节点
MsCaseFlow currentFlow = caseFlowMapper.selectByPrimaryKey(caseFlowId);
if (currentFlow == null) {
throw new ServiceException("未找到当前流程节点");
}
// 新增日志
CaseLogUtils.insertCaseLog(caseApplication.getId(), currentFlow.getNodeId(), currentFlow.getCaseStatusName(),"");
return AjaxResult.success("修改成功"); return AjaxResult.success("修改成功");
} }