...
|
...
|
@@ -596,6 +596,11 @@ func (srv TaskService) ListTask(param *command.ListTaskCommand) (map[string]inte |
|
|
Name: val.Name,
|
|
|
StatusDescription: val.StatusDescription(),
|
|
|
SortBy: val.SortBy,
|
|
|
PlanCompletedAt: time.Unix(int64(val.PlanCompletedAt), 0).Local().Format("2006-01-02"),
|
|
|
RealCompletedAt: "",
|
|
|
}
|
|
|
if val.RealCompletedAt > 0 {
|
|
|
stage.RealCompletedAt = time.Unix(int64(val.RealCompletedAt), 0).Local().Format("2006-01-02")
|
|
|
}
|
|
|
switch val.SortBy {
|
|
|
case 1:
|
...
|
...
|
@@ -887,10 +892,9 @@ func (srv TaskService) ReplyTaskStage(transactionContext application.Transaction |
|
|
if err != nil {
|
|
|
return application.ThrowError(application.INTERNAL_SERVER_ERROR, "找不到任务数据"+err.Error())
|
|
|
}
|
|
|
|
|
|
if !(len(val.AssistContent) == 0 || val.AssistContent == "无") {
|
|
|
taskData.Anomaly = 0
|
|
|
}
|
|
|
// if !(len(val.AssistContent) == 0 || val.AssistContent == "无") {
|
|
|
// taskData.Anomaly = 0
|
|
|
// }
|
|
|
taskList = append(taskList, taskData)
|
|
|
_, stageList, err := taskStageRepo.Find(map[string]interface{}{"ids": []int{val.TaskStageCheck.Id}})
|
|
|
if err != nil {
|
...
|
...
|
|