正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -991,7 +991,13 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -991,7 +991,13 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
991 | } | 991 | } |
992 | 992 | ||
993 | resultList := []adapter.TaskRecordAdapter{} | 993 | resultList := []adapter.TaskRecordAdapter{} |
994 | + nowDay := time.Now().Format("2006-01-02") | ||
994 | for _, val := range taskRecordList { | 995 | for _, val := range taskRecordList { |
996 | + recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02") | ||
997 | + | ||
998 | + if nowDay == recordCreatedAt && val.AnomalyState == domain.AnomalyStateInit { | ||
999 | + continue | ||
1000 | + } | ||
995 | 1001 | ||
996 | item := adapter.TaskRecordAdapter{ | 1002 | item := adapter.TaskRecordAdapter{ |
997 | Id: val.Id, | 1003 | Id: val.Id, |
@@ -1011,7 +1017,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -1011,7 +1017,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
1011 | PlanCompletedAt: "", | 1017 | PlanCompletedAt: "", |
1012 | RealCompletedAt: "", | 1018 | RealCompletedAt: "", |
1013 | }, | 1019 | }, |
1014 | - CreatedAt: val.CreatedAt.Local().Format("2006-01-02"), | 1020 | + CreatedAt: recordCreatedAt, |
1015 | } | 1021 | } |
1016 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") | 1022 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") |
1017 | item.TaskStageCheck.PlanCompletedAt = t1 | 1023 | item.TaskStageCheck.PlanCompletedAt = t1 |
-
请 注册 或 登录 后发表评论