Dun.Jason 9 месяцев назад
Родитель
Сommit
d8db3bf98a
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      src/Hotline.Api/Controllers/Bigscreen/DataScreenController.cs

+ 1 - 0
src/Hotline.Api/Controllers/Bigscreen/DataScreenController.cs

@@ -479,6 +479,7 @@ namespace Hotline.Api.Controllers.Bigscreen
                     SatisfiedCount = SqlFunc.AggregateSum(SqlFunc.IIF(SqlFunc.JsonField(x.OrgProcessingResults, "Key") != "1" && SqlFunc.JsonField(x.OrgProcessingResults, "Key") != "2", 1, 0)),
                     VisitCount = SqlFunc.AggregateCount(x.VisitOrgName)
                 }).MergeTable().OrderByDescending(x=>x.SatisfiedCount).Take(10).ToListAsync();
+            list = list.OrderByDescending(x => x.SatisfiedRate).ToList();
             return list;
         }