From 929332664363a6e496fa0367b08aa2c3689ad8fe Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 24 四月 2026 21:58:15 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/1.0' into 1.0

---
 xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
index 06890a2..1e69d4a 100644
--- a/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
+++ b/xp-robotaxi-map-boot/src/main/java/com/xiaopeng/map/service/serviceimpl/XpStationServiceImpl.java
@@ -85,6 +85,15 @@
         if (list.isEmpty()) {
             return new PageInfo<>();
         }
+        for (XpStation xpStation : list) {
+            xpStation.setPointCount(0);
+            xpStation.setOperatingPointCount(0);
+            List<XpPoint> xpPoints = xpPointService.listByStationId((xpStation.getId()));
+            if(CollUtil.isNotEmpty(xpPoints)){
+                xpStation.setPointCount(xpPoints.size());
+                xpStation.setOperatingPointCount((int) xpPoints.stream().filter(p -> p.getOperationStatus() != null && p.getOperationStatus() == 2).count());
+            }
+        }
         pageInfo.setRecords(list);
         return pageInfo;
     }
@@ -292,6 +301,13 @@
         }
     }
 
+    /**
+     * 设置场站状态 0=草稿 1=待启用 2=启用中 3=已停用 4=失效
+     * 并操作 mongo
+     * @param bean
+     * @param status
+     * @return
+     */
     @Override
     public boolean setStatus(XpStation bean, Integer status){
 

--
Gitblit v1.7.1