...
|
...
|
@@ -1237,7 +1237,12 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
if val.WarnFlag > 0 {
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
if val.LastStage.Id > 0 && val.LastStage.PlanCompletedAt < val.LastStage.RealCompletedAt {
|
|
|
//上一个里程碑超期完成
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
if val.CurrentStage.Id == 0 {
|
|
|
//里程碑已全部完成
|
|
|
tk.WarnFlag = 0
|
|
|
}
|
|
|
_, stageList, err := taskStageRepo.Find(map[string]interface{}{
|
...
|
...
|
@@ -1534,15 +1539,14 @@ func (srv TaskService) listTask3ForHrbp(param *command.SearchTaskCommand) (map[s |
|
|
if tk.WarnFlag > 0 {
|
|
|
tk.WarnFlag = 1
|
|
|
}
|
|
|
if val.LastStage.Id > 0 && val.LastStage.PlanCompletedAt < val.LastStage.RealCompletedAt {
|
|
|
//上一个里程碑超期完成
|
|
|
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,
|
|
|
})
|
...
|
...
|
|