|
|
|
@ -146,9 +146,9 @@ namespace ZhongLianService
|
|
|
|
|
.WhereIF(pageSearch.Mode != null && !string.IsNullOrEmpty(pageSearch.Mode.MaintenanceUid), x =>
|
|
|
|
|
x.MaintenanceUid == pageSearch.Mode!.MaintenanceUid
|
|
|
|
|
)
|
|
|
|
|
.SplitTable((DateTime)pageSearch.StartDate!, (DateTime)pageSearch.EndDate!)
|
|
|
|
|
.OrderBy("(CASE State WHEN 2 THEN 0 ELSE State END) ASC")
|
|
|
|
|
.OrderByDescending(x => x.Id)
|
|
|
|
|
.SplitTable((DateTime)pageSearch.StartDate!, (DateTime)pageSearch.EndDate!)
|
|
|
|
|
.ToPageListAsync(pageSearch.Index, pageSearch.Size, _Total);
|
|
|
|
|
return new PageData<MaintenanceDO>()
|
|
|
|
|
{
|
|
|
|
|