...
|
...
|
@@ -1018,11 +1018,9 @@ 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 && val.AnomalyState == domain.AnomalyStateInit {
|
|
|
if nowDay == recordCreatedAt {
|
|
|
continue
|
|
|
}
|
|
|
|
|
|
item := adapter.TaskRecordAdapter{
|
|
|
Id: val.Id,
|
|
|
StaffAssessId: val.StaffAssessId,
|
...
|
...
|
|