修改:流程已完成

This commit is contained in:
zjh 2025-12-23 17:56:31 +08:00
parent e43c77d0ee
commit 9c532ff57c

View File

@ -499,6 +499,11 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
.update("status", template.getStatus()) .update("status", template.getStatus())
.update("published_time", Timestamp.valueOf(LocalDateTime.now())) .update("published_time", Timestamp.valueOf(LocalDateTime.now()))
.doUpdate(Template.class); .doUpdate(Template.class);
// 待办环节修改
bd.getBusinessDatabase()
.eq("document_no", flow.getId())
.update("node", "已完成")
.doUpdate(ApprovalNodeView.class);
// 更新机型版本 // 更新机型版本
// dataEntryEngineModelService.updateModelForNewVersion(); // dataEntryEngineModelService.updateModelForNewVersion();
} else { } else {
@ -562,6 +567,11 @@ public class TemplateApprovalServiceImpl implements TemplateApprovalService {
.update("status", template.getStatus()) .update("status", template.getStatus())
.update("return_num", template.getReturnNum() + 1) .update("return_num", template.getReturnNum() + 1)
.doUpdate(Template.class); .doUpdate(Template.class);
bd.getBusinessDatabase()
.eq("document_no", flow.getId())
.update("node", "已拒绝")
.doUpdate(ApprovalNodeView.class);
// 清除所有待办 // 清除所有待办
clearAllTodo(flow); clearAllTodo(flow);
} }