Explorar el Código

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

苏智明 hace 2 años
padre
commit
85ea909c07
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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)//分页