guarantee-lsq 3 년 전
부모
커밋
c43d6be0f9
1개의 변경된 파일20개의 추가작업 그리고 9개의 파일을 삭제
  1. 20 9
      platform-rest/src/main/java/com/platform/rest/controller/store/StoreController.java

+ 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