...
|
...
|
@@ -122,7 +122,6 @@ func (srv TaskService) CreateTask(transactionContext application.TransactionCont |
|
|
TaskId: newTask.Id,
|
|
|
Name: "里程碑1",
|
|
|
SortBy: 1,
|
|
|
Status: domain.TaskStageUncompleted,
|
|
|
PlanCompletedAt: nowEndTime.Add(30 * 24 * time.Hour).Unix(),
|
|
|
RealCompletedAt: 0,
|
|
|
},
|
...
|
...
|
@@ -131,7 +130,6 @@ func (srv TaskService) CreateTask(transactionContext application.TransactionCont |
|
|
TaskId: newTask.Id,
|
|
|
Name: "里程碑2",
|
|
|
SortBy: 2,
|
|
|
Status: domain.TaskStageUncompleted,
|
|
|
PlanCompletedAt: nowEndTime.Add(60 * 24 * time.Hour).Unix(),
|
|
|
RealCompletedAt: 0,
|
|
|
},
|
...
|
...
|
@@ -140,7 +138,6 @@ func (srv TaskService) CreateTask(transactionContext application.TransactionCont |
|
|
TaskId: newTask.Id,
|
|
|
Name: "里程碑3",
|
|
|
SortBy: 3,
|
|
|
Status: domain.TaskStageUncompleted,
|
|
|
PlanCompletedAt: nowEndTime.Add(90 * 24 * time.Hour).Unix(),
|
|
|
RealCompletedAt: 0,
|
|
|
},
|
...
|
...
|
@@ -251,7 +248,6 @@ func (srv TaskService) UpdateTask(param *command.UpdateTaskCommand) (map[string] |
|
|
TaskId: taskData.Id,
|
|
|
Name: val2.Name,
|
|
|
SortBy: i + 1,
|
|
|
Status: domain.TaskStageUncompleted,
|
|
|
PlanCompletedAt: t.Unix(),
|
|
|
RealCompletedAt: 0,
|
|
|
}
|
...
|
...
|
@@ -378,7 +374,6 @@ func (srv TaskService) GetTaskInfo(param *command.GetTaskCommand) (*adapter.Task |
|
|
RealCompletedAt: t2,
|
|
|
SortBy: val.SortBy,
|
|
|
StatusDescription: val.StatusDescription(),
|
|
|
Status: int(val.Status),
|
|
|
})
|
|
|
}
|
|
|
return &result, nil
|
...
|
...
|
@@ -540,7 +535,6 @@ func (srv TaskService) ListTask(param *command.ListTaskCommand) (map[string]inte |
|
|
Id: val.Id,
|
|
|
Name: val.Name,
|
|
|
StatusDescription: val.StatusDescription(),
|
|
|
Status: int(val.Status),
|
|
|
SortBy: val.SortBy,
|
|
|
}
|
|
|
switch val.SortBy {
|
...
|
...
|
@@ -817,7 +811,6 @@ func (t TaskService) ReplyTaskStage(transactionContext application.TransactionCo |
|
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "找不到任务里程碑数据"+err.Error())
|
|
|
}
|
|
|
if len(stageList) > 0 {
|
|
|
stageList[0].Status = val.TaskStageCheck.Status
|
|
|
stageList[0].RealCompletedAt = val.TaskStageCheck.RealCompletedAt
|
|
|
taskStages = append(taskStages, stageList[0])
|
|
|
}
|
...
|
...
|
|