...
|
...
|
@@ -1235,17 +1235,11 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
tk.CurrentStage.RealCompletedAt = time.Unix(int64(val.CurrentStage.RealCompletedAt), 0).Local().Format("2006-01-02")
|
|
|
}
|
|
|
if val.WarnFlag > 0 {
|
|
|
val.WarnFlag = 1
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
if val.CurrentStage.Id == 0 {
|
|
|
tk.WarnFlag = 0
|
|
|
}
|
|
|
// if val.LastStage.Id > 0 && val.LastStage.PlanCompletedAt < val.LastStage.RealCompletedAt {
|
|
|
// tk.WarnFlag = int(domain.TaskWarn)
|
|
|
// }
|
|
|
// if val.CurrentStage.Id > 0 && val.CurrentStage.PlanCompletedAt < nowTime {
|
|
|
// tk.WarnFlag = int(domain.TaskWarn)
|
|
|
// }
|
|
|
_, stageList, err := taskStageRepo.Find(map[string]interface{}{
|
|
|
"taskId": val.TaskId,
|
|
|
})
|
...
|
...
|
|