正在显示
1 个修改的文件
包含
3 行增加
和
0 行删除
@@ -846,6 +846,9 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -846,6 +846,9 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
846 | }, | 846 | }, |
847 | CreatedAt: recordCreatedAt, | 847 | CreatedAt: recordCreatedAt, |
848 | } | 848 | } |
849 | + if val.AnomalyState == domain.AnomalyStateInit { | ||
850 | + item.AnomalyState = domain.AnomalyState0 | ||
851 | + } | ||
849 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") | 852 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") |
850 | item.TaskStageCheck.PlanCompletedAt = t1 | 853 | item.TaskStageCheck.PlanCompletedAt = t1 |
851 | if val.TaskStageCheck.RealCompletedAt > 0 { | 854 | if val.TaskStageCheck.RealCompletedAt > 0 { |
-
请 注册 或 登录 后发表评论