正在显示
2 个修改的文件
包含
0 行增加
和
6 行删除
@@ -636,7 +636,6 @@ func (status *UnConfirmedStatus) RejectReceiver(task *Task) error { | @@ -636,7 +636,6 @@ func (status *UnConfirmedStatus) RejectReceiver(task *Task) error { | ||
636 | return nil | 636 | return nil |
637 | } | 637 | } |
638 | 638 | ||
639 | -// TODO 已过期任务支持编辑 | ||
640 | type ExpiredStatus struct{} | 639 | type ExpiredStatus struct{} |
641 | 640 | ||
642 | func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) error { | 641 | func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) error { |
@@ -673,9 +672,6 @@ func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) erro | @@ -673,9 +672,6 @@ func (status ExpiredStatus) Update(task *Task, data map[string]interface{}) erro | ||
673 | } | 672 | } |
674 | if bidEndTime, ok := data["bidEndTime"]; ok { | 673 | if bidEndTime, ok := data["bidEndTime"]; ok { |
675 | task.BidInfo.BidEndTime = bidEndTime.(time.Time) | 674 | task.BidInfo.BidEndTime = bidEndTime.(time.Time) |
676 | - //task.ReceiveTime = time.Now() | ||
677 | - //task.TaskStatus = TASK_STATUS_UNDERWAY | ||
678 | - //task.CurrentStatus = &UnderwayStatus{} | ||
679 | } | 675 | } |
680 | if isRemind, ok := data["isRemind"]; ok { | 676 | if isRemind, ok := data["isRemind"]; ok { |
681 | task.BidInfo.IsRemind = isRemind.(bool) | 677 | task.BidInfo.IsRemind = isRemind.(bool) |
@@ -75,7 +75,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64 | @@ -75,7 +75,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64 | ||
75 | for _, participatorUid := range participators { | 75 | for _, participatorUid := range participators { |
76 | if participator, err := employeeRepository.FindOne(map[string]interface{}{ | 76 | if participator, err := employeeRepository.FindOne(map[string]interface{}{ |
77 | "uid": participatorUid, | 77 | "uid": participatorUid, |
78 | - "status": 1, | ||
79 | }); err != nil { | 78 | }); err != nil { |
80 | return nil, err | 79 | return nil, err |
81 | } else { | 80 | } else { |
@@ -105,7 +104,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64 | @@ -105,7 +104,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64 | ||
105 | if taskPercentageItem.IsReceiver { | 104 | if taskPercentageItem.IsReceiver { |
106 | receiver, err := employeeRepository.FindOne(map[string]interface{}{ | 105 | receiver, err := employeeRepository.FindOne(map[string]interface{}{ |
107 | "uid": taskPercentageItem.Contributor.Uid, | 106 | "uid": taskPercentageItem.Contributor.Uid, |
108 | - "status": 1, | ||
109 | }) | 107 | }) |
110 | if err != nil { | 108 | if err != nil { |
111 | return nil, err | 109 | return nil, err |
-
请 注册 或 登录 后发表评论