Skip to content

Commit e102f82

Browse files
author
QM303176530
committed
修复了流程终止依然显示进行中的bug
1 parent 36627e4 commit e102f82

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

server/service/sys_workflow.go

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,18 @@ func createNewWorkflowMove(tx *gorm.DB, oldWfm *model.WorkflowMove, targetNodeID
382382
}
383383

384384
return nil, newWfm
385-
385+
case constant.END:
386+
newWfm = append(newWfm, model.WorkflowMove{
387+
BusinessID: oldWfm.BusinessID,
388+
BusinessType: oldWfm.BusinessType,
389+
PromoterID: oldWfm.PromoterID,
390+
OperatorID: oldWfm.OperatorID,
391+
WorkflowNodeID: targetNodeID,
392+
WorkflowProcessID: oldWfm.WorkflowProcessID,
393+
Param: "",
394+
Action: "",
395+
IsActive: false})
396+
return nil, newWfm
386397
default:
387398
newWfm = append(newWfm, model.WorkflowMove{
388399
BusinessID: oldWfm.BusinessID,

0 commit comments

Comments
 (0)