...
|
...
|
@@ -1018,7 +1018,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map |
|
|
nowDay := time.Now().Format("2006-01-02")
|
|
|
for _, val := range taskRecordList {
|
|
|
recordCreatedAt := val.CreatedAt.Local().Format("2006-01-02")
|
|
|
if nowDay == recordCreatedAt {
|
|
|
if nowDay == recordCreatedAt && val.AnomalyState != domain.AnomalyState1 {
|
|
|
continue
|
|
|
}
|
|
|
item := adapter.TaskRecordAdapter{
|
...
|
...
|
@@ -1229,11 +1229,12 @@ func (srv TaskService) ListTask3(param *command.SearchTaskCommand) (map[string]i |
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务总数"+err.Error())
|
|
|
}
|
|
|
//
|
|
|
//里程碑异常s
|
|
|
taskStageAnomalyCnt, err := taskDao.CountTaskStageAnomalyNotHrbp(condition)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计异常的任务里程碑总数"+err.Error())
|
|
|
}
|
|
|
//反馈异常数
|
|
|
taskAnomalyCnt, err := taskDao.CountTaskAnomalyNotHrbp(condition)
|
|
|
if err != nil {
|
|
|
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "统计任务反馈异常总数"+err.Error())
|
...
|
...
|
|