Browse Source

部门满意度排行榜

Dun.Jason 9 months ago
parent
commit
d8db3bf98a
1 changed files with 1 additions and 0 deletions
  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;
         }