Skip to content

Commit 4030cd3

Browse files
author
QM303176530
committed
Merge branches 'develop', 'gva_gormv2_dev' and 'master' of https://github.com/flipped-aurora/gin-vue-admin into develop
3 parents 5eec28a + 04d8303 + d796a39 commit 4030cd3

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-10
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,

server/utils/cmd_Task.go

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,17 +73,12 @@ func newT(f func(chan struct{}) error) *T {
7373
//@description: 添加任务
7474

7575
func (t *T) AddTask() {
76-
if len(t.ch) == 1 {
77-
return
78-
}
79-
t.Lock()
80-
defer t.Unlock()
81-
if len(t.ch) == 1 {
76+
select {
77+
case t.ch <- struct{}{}:
78+
default:
8279
// 代表已经有任务了
8380
// 直接丢弃这次任务
84-
return
8581
}
86-
t.ch <- struct{}{}
8782
}
8883

8984
//@author: [songzhibin97](https://github.com/songzhibin97)

web/src/view/workflow/workflowUse/workflowUse.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div slot="title">{{ item.workflowNode.label }}</div>
77
<div slot="description">
88
<div>节点说明:{{ item.workflowNode.description }}</div>
9-
<div>操作人:{{ item.promoter.nickName }}</div>
9+
<div v-if="item.operator.nickName">操作人:{{ item.operator.nickName }}</div>
1010
<div>操作参数:{{ item.param||'无参数' }}</div>
1111
</div>
1212
</el-step>

0 commit comments

Comments
 (0)