소스 검색

修复count在列表查询时不考虑limit的问题

苏智明 2 년 전
부모
커밋
85ea909c07
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Admin.NET/Admin.NET.Core/Service/APIJSON/SelectTable.cs

+ 1 - 1
Admin.NET/Admin.NET.Core/Service/APIJSON/SelectTable.cs

@@ -96,7 +96,7 @@ public class SelectTable : ISingleton
         values.Remove("count");
         var tb = SugarQueryable(subtable, selectrole, values, dd);
         if (query == 1)//1-总数
-            return new Tuple<dynamic, int>(null, tb.Count());
+            return new Tuple<dynamic, int>(null, tb.MergeTable().Count());
         else
         {
             if (page > 0)//分页