From 115141318282b84a396e81759e7c13aa93a7962c Mon Sep 17 00:00:00 2001 From: QM303176530 <303176530@qq.com> Date: Sun, 29 Nov 2020 22:12:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E7=BB=88=E6=AD=A2=E4=BE=9D=E7=84=B6=E6=98=BE=E7=A4=BA=E8=BF=9B?= =?UTF-8?q?=E8=A1=8C=E4=B8=AD=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/service/sys_workflow.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/server/service/sys_workflow.go b/server/service/sys_workflow.go index b588d2ee..d18355de 100644 --- a/server/service/sys_workflow.go +++ b/server/service/sys_workflow.go @@ -382,7 +382,18 @@ func createNewWorkflowMove(tx *gorm.DB, oldWfm *model.WorkflowMove, targetNodeID } return nil, newWfm - + case constant.END: + newWfm = append(newWfm, model.WorkflowMove{ + BusinessID: oldWfm.BusinessID, + BusinessType: oldWfm.BusinessType, + PromoterID: oldWfm.PromoterID, + OperatorID: oldWfm.OperatorID, + WorkflowNodeID: targetNodeID, + WorkflowProcessID: oldWfm.WorkflowProcessID, + Param: "", + Action: "", + IsActive: false}) + return nil, newWfm default: newWfm = append(newWfm, model.WorkflowMove{ BusinessID: oldWfm.BusinessID,