From 1553782fd262f97a336fecc8b38f8f309fc08ae6 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期三, 01 四月 2026 11:07:31 +0800
Subject: [PATCH] #前端

---
 rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasStationController.java |   20 +++++++++++++++++++-
 1 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasStationController.java b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasStationController.java
index 68e7977..cd540a0 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasStationController.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/manager/controller/BasStationController.java
@@ -10,6 +10,8 @@
 import com.vincent.rsf.server.common.domain.BaseParam;
 import com.vincent.rsf.server.common.domain.KeyValVo;
 import com.vincent.rsf.server.common.domain.PageParam;
+import com.vincent.rsf.server.common.domain.PageResult;
+import com.vincent.rsf.server.manager.controller.vo.BasStationOptionVo;
 import com.vincent.rsf.server.manager.entity.BasStation;
 import com.vincent.rsf.server.manager.enums.LocStsType;
 import com.vincent.rsf.server.manager.service.BasStationService;
@@ -59,7 +61,15 @@
     public R pagev22(@RequestBody Map<String, Object> map) {
         BaseParam baseParam = buildParam(map, BaseParam.class);
         PageParam<BasStation, BaseParam> pageParam = new PageParam<>(baseParam, BasStation.class);
-        return R.ok().add(basStationService.page(pageParam, pageParam.buildWrapper(true)));
+        PageParam<BasStation, BaseParam> page = basStationService.page(
+                pageParam,
+                pageParam.buildWrapper(true).select("id", "station_name", "station_id")
+        );
+        PageResult<BasStationOptionVo> pageResult = new PageResult<>();
+        pageResult
+                .setTotal(page.getTotal())
+                .setRecords(page.getRecords().stream().map(this::buildOptionVo).collect(Collectors.toList()));
+        return R.ok().add(pageResult);
     }
 
     @PreAuthorize("hasAuthority('manager:basStation:list')")
@@ -189,4 +199,12 @@
         ExcelUtil.build(ExcelUtil.create(basStationService.list(), BasStation.class), response);
     }
 
+    private BasStationOptionVo buildOptionVo(BasStation station) {
+        BasStationOptionVo optionVo = new BasStationOptionVo();
+        optionVo.setId(station.getId());
+        optionVo.setStationName(station.getStationName());
+        optionVo.setStationId(station.getStationId());
+        return optionVo;
+    }
+
 }

--
Gitblit v1.9.1