正在显示
1 个修改的文件
包含
3 行增加
和
4 行删除
@@ -917,10 +917,6 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -917,10 +917,6 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
917 | nowDay := time.Now().Format("2006-01-02") | 917 | nowDay := time.Now().Format("2006-01-02") |
918 | for _, val := range taskRecordList { | 918 | for _, val := range taskRecordList { |
919 | recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02") | 919 | recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02") |
920 | - if nowDay == recordCreatedAt && val.AnomalyState != domain.AnomalyState1 { | ||
921 | - cnt = cnt - 1 | ||
922 | - continue | ||
923 | - } | ||
924 | item := adapter.TaskRecordAdapter{ | 920 | item := adapter.TaskRecordAdapter{ |
925 | Id: val.Id, | 921 | Id: val.Id, |
926 | StaffAssessId: val.StaffAssessId, | 922 | StaffAssessId: val.StaffAssessId, |
@@ -946,6 +942,9 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -946,6 +942,9 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
946 | if val.AnomalyState == domain.AnomalyStateInit { | 942 | if val.AnomalyState == domain.AnomalyStateInit { |
947 | item.AnomalyState = domain.AnomalyState0 | 943 | item.AnomalyState = domain.AnomalyState0 |
948 | } | 944 | } |
945 | + if nowDay == recordCreatedAt { | ||
946 | + item.AnomalyState = domain.AnomalyState1 | ||
947 | + } | ||
949 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") | 948 | t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02") |
950 | item.TaskStageCheck.PlanCompletedAt = t1 | 949 | item.TaskStageCheck.PlanCompletedAt = t1 |
951 | if val.TaskStageCheck.RealCompletedAt > 0 { | 950 | if val.TaskStageCheck.RealCompletedAt > 0 { |
-
请 注册 或 登录 后发表评论