作者 tangxvhui

更新

@@ -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 {