作者 陈志颖

fix:验收任务

... ... @@ -636,7 +636,6 @@ func (status *UnConfirmedStatus) RejectReceiver(task *Task) error {
return nil
}
// TODO 已过期任务支持编辑
type ExpiredStatus struct{}
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
}
if bidEndTime, ok := data["bidEndTime"]; ok {
task.BidInfo.BidEndTime = bidEndTime.(time.Time)
//task.ReceiveTime = time.Now()
//task.TaskStatus = TASK_STATUS_UNDERWAY
//task.CurrentStatus = &UnderwayStatus{}
}
if isRemind, ok := data["isRemind"]; ok {
task.BidInfo.IsRemind = isRemind.(bool)
... ...
... ... @@ -75,7 +75,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64
for _, participatorUid := range participators {
if participator, err := employeeRepository.FindOne(map[string]interface{}{
"uid": participatorUid,
"status": 1,
}); err != nil {
return nil, err
} else {
... ... @@ -105,7 +104,6 @@ func (service *AcceptanceTaskService) Acceptance(taskId int64, operatorUid int64
if taskPercentageItem.IsReceiver {
receiver, err := employeeRepository.FindOne(map[string]interface{}{
"uid": taskPercentageItem.Contributor.Uid,
"status": 1,
})
if err != nil {
return nil, err
... ...