소스 검색

部门满意度排行榜

Dun.Jason 9 달 전
부모
커밋
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;
         }