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