guarantee-lsq 2 years ago
parent
commit
c43d6be0f9

+ 20 - 9
platform-rest/src/main/java/com/platform/rest/controller/store/StoreController.java

@@ -201,15 +201,26 @@ public class StoreController {
   }
 
   /**
-   * 获取仓库树
-   *
-   * @param storeDTO 仓库信息DTO
-   * @return R
-   */
-  @GetMapping("tree")
-  public R queryTree(StoreDTO storeDTO) {
-    return new R<>(TreeUtil.buildStoreTree(storeService.getModelListByDTO(storeDTO), ""));
-  }
+     * 获取仓库树
+     *
+     * @param storeDTO 仓库信息DTO
+     * @return R
+     */
+    @GetMapping("tree")
+    public R queryTree(StoreDTO storeDTO) {
+        return new R<>(TreeUtil.buildStoreTree(storeService.getModelListByDTO(storeDTO), ""));
+    }
+
+    /**
+     * 获取仓库列表
+     * 小程序 移动端
+     * @param storeDTO 仓库信息DTO
+     * @return R
+     */
+    @GetMapping("/uni/tree")
+    public R queryList(StoreDTO storeDTO) {
+        return new R<>(storeService.getModelListByDTO(storeDTO), "");
+    }
 
     /**
      * 获取设备tables tree