ソースを参照

更改坐席小休统计表排序

tangjiang 1 週間 前
コミット
55d09fb101
1 ファイル変更4 行追加2 行削除
  1. 4 2
      src/Hotline.Api/Controllers/Bi/BiCallController.cs

+ 4 - 2
src/Hotline.Api/Controllers/Bi/BiCallController.cs

@@ -496,9 +496,10 @@ public class BiCallController : BaseController
                 RestDuration = SqlFunc.AggregateSum(x.RestDuration / 60) / SqlFunc.AggregateCount(x.Id),
                 CumulativeDuration = SqlFunc.AggregateSum(x.RestDuration / 60)
             })
+            .OrderByDescending(x=>x.DayTime)
             .OrderByIF(dto.SortRule is 0, a => a.RestDuration, OrderByType.Asc)
             .OrderByIF(dto.SortRule is 1, a => a.RestDuration, OrderByType.Desc)
-            .MergeTable()
+            //.MergeTable()
             .ToListAsync(HttpContext.RequestAborted);
     }
 
@@ -527,9 +528,10 @@ public class BiCallController : BaseController
                 RestDuration = SqlFunc.AggregateSum(x.RestDuration / 60) / SqlFunc.AggregateCount(x.Id),
                 CumulativeDuration = SqlFunc.AggregateSum(x.RestDuration / 60)
             })
+             .OrderByDescending(x => x.DayTime)
             .OrderByIF(dto.QueryDto.SortRule is 0, a => a.RestDuration, OrderByType.Asc)
             .OrderByIF(dto.QueryDto.SortRule is 1, a => a.RestDuration, OrderByType.Desc)
-            .MergeTable()
+           // .MergeTable()
             .ToListAsync(HttpContext.RequestAborted);
 
         dynamic? dynamicClass = DynamicClassHelper.CreateDynamicClass<BiSeatRestDto>(dto.ColumnInfos);