作者 tangxvhui

更新

... ... @@ -991,7 +991,13 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map
}
resultList := []adapter.TaskRecordAdapter{}
nowDay := time.Now().Format("2006-01-02")
for _, val := range taskRecordList {
recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02")
if nowDay == recordCreatedAt && val.AnomalyState == domain.AnomalyStateInit {
continue
}
item := adapter.TaskRecordAdapter{
Id: val.Id,
... ... @@ -1011,7 +1017,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map
PlanCompletedAt: "",
RealCompletedAt: "",
},
CreatedAt: val.CreatedAt.Local().Format("2006-01-02"),
CreatedAt: recordCreatedAt,
}
t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02")
item.TaskStageCheck.PlanCompletedAt = t1
... ...