Browse Source

将获取小区楼号泵站列表 暂时使用不分页的

王苗苗 1 month ago
parent
commit
09967e4df9

+ 15 - 3
slibra-admin/src/main/java/com/slibra/web/controller/business/TPumpingStationController.java

@@ -129,14 +129,26 @@ public class TPumpingStationController extends BaseController
      * 获取所有的小区(简单信息 没有查询复杂数据)
      * 2024年11月19日17:31:38 逻辑调整:前端再把对应的泵站ID传过来,然后查询绑定的小区楼号相关的信息
      * 2025年02月11日10:50:41 返回结果改成分页的,因为数据量太大了,pageSize先改成很大,因为前端还没实现分页功能,只是让后台先有次功能
+     * 2025年02月11日13:21:24 哪天换成分页,使用这个,先试用下面这个
      * @return
      */
-    @GetMapping("/getSimpleNeighbourhoodList")
+    /*@GetMapping("/getSimpleNeighbourhoodList")
     public TableDataInfo getSimpleNeighbourhoodList(TNeighborhood tNeighborhood){
         log.info("进入了 获取小区列表基本信息 接口");
-//        startPage();
-        PageHelper.startPage(1, 10000);//先写死 等前端上了以后再用上面的startPage()
+        startPage();
         return getDataTable(this.tPumpingStationService.getSimpleNeighbourhoodList(tNeighborhood));
+    }*/
+
+
+    /**
+     * 获取所有的小区(简单信息 没有查询复杂数据)
+     * 2024年11月19日17:31:38 逻辑调整:前端再把对应的泵站ID传过来,然后查询绑定的小区楼号相关的信息
+     * @return
+     */
+    @GetMapping("/getSimpleNeighbourhoodList")
+    public R<List<TNeighborhood>> getSimpleNeighbourhoodList(TNeighborhood tNeighborhood){
+        log.info("进入了 获取小区列表基本信息 接口");
+        return R.ok(this.tPumpingStationService.getSimpleNeighbourhoodList(tNeighborhood));
     }