From c68f6d74bdc86474c22a07f2fcaf463b2910905a Mon Sep 17 00:00:00 2001
From: skyouc <958836976@qq.com>
Date: 星期五, 27 二月 2026 14:44:16 +0800
Subject: [PATCH] no message

---
 src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java |   18 ++++++++++++++++++
 src/main/java/com/zy/asrs/controller/MobileController.java    |    9 +++++++++
 src/main/java/com/zy/asrs/service/MobileService.java          |    7 +++++++
 3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/asrs/controller/MobileController.java b/src/main/java/com/zy/asrs/controller/MobileController.java
index 61011cb..2e24c37 100644
--- a/src/main/java/com/zy/asrs/controller/MobileController.java
+++ b/src/main/java/com/zy/asrs/controller/MobileController.java
@@ -187,6 +187,15 @@
         return mobileService.getCacheLocs();
     }
 
+
+    @ManagerAuth
+    @GetMapping("/cache/sites/{type}")
+    @ApiOperation("鑾峰彇缂撳瓨鍖哄叆鍑哄簱绔欑偣淇℃伅")
+    public R getCacheSites(@PathVariable String type) {
+        return mobileService.getCacheSites(type);
+
+    }
+
     @PostMapping("/cache/agv/call")
     @ApiOperation("缂撳啿鍖哄叆搴�")
     @ManagerAuth
diff --git a/src/main/java/com/zy/asrs/service/MobileService.java b/src/main/java/com/zy/asrs/service/MobileService.java
index c1c15b4..f6eed1b 100644
--- a/src/main/java/com/zy/asrs/service/MobileService.java
+++ b/src/main/java/com/zy/asrs/service/MobileService.java
@@ -185,4 +185,11 @@
      * @return
      */
     R changeLoc(CompleteParam combParam, long l);
+
+    /**
+     * 鑾峰彇缂撳瓨绔欑偣淇℃伅
+     * @param type
+     * @return
+     */
+    R getCacheSites(String type);
 }
diff --git a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
index e87e8f8..8574017 100644
--- a/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MobileServiceImpl.java
@@ -2800,6 +2800,24 @@
     }
 
     /**
+     * 鑾峰彇缂撳瓨绔欑偣淇℃伅
+     * @param type
+     * @return
+     */
+    @Override
+    public R getCacheSites(String type) {
+        BasAreas areas = basAreasService.selectOne(new EntityWrapper<BasAreas>().eq("whs_type_id", type));
+        if (Objects.isNull(areas)) {
+            return R.error("搴撳尯涓嶅瓨鍦紒");
+        }
+        List<BasStation> stations = basStationService.selectList(new EntityWrapper<BasStation>().eq("area_id", areas.getId()));
+        if (Objects.isNull(stations) || stations.isEmpty()) {
+            return R.error("绔欑偣涓嶅瓨鍦紒");
+        }
+        return R.ok("鏌ヨ鎴愬姛").add(stations);
+    }
+
+    /**
      * 鐢熸垚绉诲簱浠诲姟
      *
      * @param result

--
Gitblit v1.9.1