作者 tangxvhui

调整TaskRecord.AnomalyState 的默认值

... ... @@ -477,6 +477,7 @@ func (srv StaffAssessServeice) buildTaskRecord(staffAssess *domain.StaffAssess)
TaskLeader: taskList[0].Leader,
AssistLevel: 0,
AssistContent: "",
AnomalyState: domain.AnomalyState1,
TaskStages: []domain.TaskStage{},
TaskStageCheck: domain.TaskStage{},
}
... ...
... ... @@ -979,13 +979,13 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map
}
resultList := []adapter.TaskRecordAdapter{}
nowDay := time.Now().Format("2006-01-02")
//nowDay := time.Now().Format("2006-01-02")
for _, val := range taskRecordList {
// 跳过今天
createdAtDay := val.CreatedAt.Local().Format("2006-01-02")
if createdAtDay == nowDay {
continue
}
// createdAtDay := val.CreatedAt.Local().Format("2006-01-02")
// if createdAtDay == nowDay {
// continue
// }
item := adapter.TaskRecordAdapter{
Id: val.Id,
StaffAssessId: val.StaffAssessId,
... ... @@ -1004,7 +1004,7 @@ func (srv TaskService) ListTaskRecord(param *command.ListTaskRecordCommand) (map
PlanCompletedAt: "",
RealCompletedAt: "",
},
CreatedAt: createdAtDay,
CreatedAt: val.CreatedAt.Local().Format("2006-01-02"),
}
t1 := time.Unix(val.TaskStageCheck.PlanCompletedAt, 0).Local().Format("2006-01-02")
item.TaskStageCheck.PlanCompletedAt = t1
... ...