Browse Source

count修改

dongql 7 years ago
parent
commit
194c510902

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/AirLineExchangeController.java

@@ -40,7 +40,7 @@ public class AirLineExchangeController {
             airLineExchangeVo.setSize(Integer.parseInt(pageSize));
             airLineExchangeVo.setStatus(1);
             List<AirLineExchangeVo> airLineExchangeVos = airLineExchangeService.listPageAirLineExchange(airLineExchangeVo);
-            layuiTableRespEntity.setCount(airLineExchangeVos.size());
+            layuiTableRespEntity.setCount(airLineExchangeVo.getTotal());
             layuiTableRespEntity.setList(airLineExchangeVos);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/AirSourceMenuController.java

@@ -38,7 +38,7 @@ public class AirSourceMenuController {
         airSourceMenuVo.setSize(Integer.parseInt(pageSize));
         airSourceMenuVo.setStatus(1);
         List<AirSourceMenuVo> airSourceMenuVos = airSourceMenuService.listPageAirSourceMenu(airSourceMenuVo);
-        layuiTableRespEntity.setCount(airSourceMenuVos.size());
+        layuiTableRespEntity.setCount(airSourceMenuVo.getTotal());
         layuiTableRespEntity.setList(airSourceMenuVos);
         layuiTableRespEntity.setMsg("成功");
         layuiTableRespEntity.setRel(true);

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/PlatformMenuController.java

@@ -39,7 +39,7 @@ public class PlatformMenuController {
             platformMenuVo.setSize(Integer.parseInt(pageSize));
             platformMenuVo.setStatus(1);
             List<PlatformMenuVo> platformMenuVos = platformMenuService.listPagePlatformMenu(platformMenuVo);
-            layuiTableRespEntity.setCount(platformMenuVos.size());
+            layuiTableRespEntity.setCount(platformMenuVo.getTotal());
             layuiTableRespEntity.setList(platformMenuVos);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/PlatformSourceController.java

@@ -42,7 +42,7 @@ public class PlatformSourceController {
             platformSourceVo.setSize(Integer.parseInt(pageSize));
             platformSourceVo.setStatus(1);
             List<PlatformSourceVo> platformSourceVos = platformSourceService.listPagePlatformSource(platformSourceVo);
-            layuiTableRespEntity.setCount(platformSourceVos.size());
+            layuiTableRespEntity.setCount(platformSourceVo.getTotal());
             layuiTableRespEntity.setList(platformSourceVos);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/PolicyController.java

@@ -39,7 +39,7 @@ public class PolicyController {
             policyEntity.setSize(Integer.parseInt(pageSize));
             policyEntity.setStatus(1);
             List<PolicyEntity> policyEntitys = policyService.listPagePolicy(policyEntity);
-            layuiTableRespEntity.setCount(policyEntitys.size());
+            layuiTableRespEntity.setCount(policyEntity.getTotal());
             layuiTableRespEntity.setList(policyEntitys);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);

+ 1 - 1
oa_service/src/main/java/com/bjlt/spider/table/controller/RefundRulesController.java

@@ -40,7 +40,7 @@ public class RefundRulesController {
             refundRules.setSize(Integer.parseInt(pageSize));
             refundRules.setStatus(1);
             List<RefundRules> refundRuless = refundRulesService.listPageRefundRules(refundRules);
-            layuiTableRespEntity.setCount(refundRuless.size());
+            layuiTableRespEntity.setCount(refundRules.getTotal());
             layuiTableRespEntity.setList(refundRuless);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);

+ 1 - 2
oa_service/src/main/java/com/bjlt/spider/table/controller/ServiceTimeControController.java

@@ -42,11 +42,10 @@ public class ServiceTimeControController {
             timeControConfigVo.setSize(Integer.parseInt(pageSize));
             timeControConfigVo.setStatus(1);
             List<TimeControConfigVo> timeControConfigVos = serviceTimeControService.listPageTimeControConfig(timeControConfigVo);
-            layuiTableRespEntity.setCount(timeControConfigVos.size());
+            layuiTableRespEntity.setCount(timeControConfigVo.getTotal());
             layuiTableRespEntity.setList(timeControConfigVos);
             layuiTableRespEntity.setMsg("成功");
             layuiTableRespEntity.setRel(true);
-            System.out.println("--------------"+ JSON.toJSONString(timeControConfigVos));
             return layuiTableRespEntity;
         } catch (SQLException e) {
             e.printStackTrace();