正在显示
1 个修改的文件
包含
3 行增加
和
2 行删除
@@ -1018,7 +1018,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | @@ -1018,7 +1018,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map | ||
1018 | nowDay := time.Now().Format("2006-01-02") | 1018 | nowDay := time.Now().Format("2006-01-02") |
1019 | for _, val := range taskRecordList { | 1019 | for _, val := range taskRecordList { |
1020 | recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02") | 1020 | recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02") |
1021 | - if nowDay == recordCreatedAt { | 1021 | + if nowDay == recordCreatedAt && val.AnomalyState != domain.AnomalyState1 { |
1022 | continue | 1022 | continue |
1023 | } | 1023 | } |
1024 | item := adapter.TaskRecordAdapter{ | 1024 | item := adapter.TaskRecordAdapter{ |
@@ -1229,11 +1229,12 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i | @@ -1229,11 +1229,12 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i | ||
1229 | if err != nil { | 1229 | if err != nil { |
1230 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务总数"+err.Error()) | 1230 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务总数"+err.Error()) |
1231 | } | 1231 | } |
1232 | - // | 1232 | + //里程碑异常s |
1233 | taskStageAnomalyCnt, err := taskDao.CountTaskStageAnomalyNotHrbp(condition) | 1233 | taskStageAnomalyCnt, err := taskDao.CountTaskStageAnomalyNotHrbp(condition) |
1234 | if err != nil { | 1234 | if err != nil { |
1235 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计异常的任务里程碑总数"+err.Error()) | 1235 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计异常的任务里程碑总数"+err.Error()) |
1236 | } | 1236 | } |
1237 | + //反馈异常数 | ||
1237 | taskAnomalyCnt, err := taskDao.CountTaskAnomalyNotHrbp(condition) | 1238 | taskAnomalyCnt, err := taskDao.CountTaskAnomalyNotHrbp(condition) |
1238 | if err != nil { | 1239 | if err != nil { |
1239 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务反馈异常总数"+err.Error()) | 1240 | return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务反馈异常总数"+err.Error()) |
-
请 注册 或 登录 后发表评论