...
|
...
|
@@ -1192,7 +1192,6 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
taskStageRepo := factory.CreateTaskStageRepository(map[string]interface{}{
|
|
|
"transactionContext": transactionContext,
|
|
|
})
|
|
|
nowDay := xtime.DayEndTime(time.Now()).Unix()
|
|
|
for _, val := range taskListData {
|
|
|
tk := adapter.TaskItem{
|
|
|
Id: val.TaskId,
|
...
|
...
|
@@ -1236,14 +1235,6 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
if val.WarnFlag > 0 {
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
if val.LastStage.Id > 0 && val.LastStage.RealCompletedAt < nowDay {
|
|
|
if val.LastStage.Id > 0 &&
|
|
|
val.LastStage.PlanCompletedAt < val.LastStage.RealCompletedAt &&
|
|
|
val.CurrentStage.Id > 0 {
|
|
|
//上一个里程碑超期完成,标红
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
}
|
|
|
|
|
|
_, stageList, err := taskStageRepo.Find(map[string]interface{}{
|
|
|
"taskId": val.TaskId,
|
...
|
...
|
|