修改一版

This commit is contained in:
he
2022-06-17 09:24:05 +08:00
parent 9c48f46ca4
commit a68360a07c
3 changed files with 43 additions and 8 deletions
@@ -155,10 +155,7 @@ namespace IRaCIS.Core.Application.Service.Inspection
{
query = query.Where(x => x.InPlan == false);
}
dto.Asc = false;
return await query.ToPagedListAsync(dto.PageIndex, dto.PageSize,"CreateTime", dto.Asc);
return await query.ToPagedListAsync(dto.PageIndex, dto.PageSize, dto.SortField.IsNullOrEmpty()?nameof(GetDataInspectionOutDto.CreateTime): dto.SortField, dto.Asc);
}