From d016b04e9beb8d1cb039188dd979d8805d9aa394 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Tue, 02 Apr 2024 16:31:28 +0800
Subject: [PATCH] Waylinefile新增根据ID修改文件名称,workspace新增根据id查找信息

---
 src/main/java/com/dji/sample/patches/controller/GetPatchesController.java |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java b/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
index 9a39412..5ca7a73 100644
--- a/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
+++ b/src/main/java/com/dji/sample/patches/controller/GetPatchesController.java
@@ -19,10 +19,12 @@
     @GetMapping("/getPatches")
     @SysLogAnnotation(operModul = "图斑", operType = "查询", operDesc = "查询图斑的全部信息")
     public ResponseResult<PaginationData<LotInfo>> page(@RequestParam Integer page,
-                                                        @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize) {
+                                                        @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize,
+                                                        @RequestParam String workspaceId) {
         //调用service分页查询
         PatchesParam param=PatchesParam.builder()
                 .page(page)
+                .workspaceId(workspaceId)
                 .pageSize(pageSize).build();
         PaginationData<LotInfo> data = getPatchesService.limitGet(param);
         return ResponseResult.success(data);
@@ -37,9 +39,11 @@
     @GetMapping("/GetPhoto")
     public ResponseResult<PaginationData<MediaFileEntity>>  GetPatchesPhoto(@RequestParam(name = "page", defaultValue = "1") Integer page,
                                                                             @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize,
+                                                                            @RequestParam String workspaceId,
                                                                             @RequestParam String dkbh){
         PatchesParam param=PatchesParam.builder()
                 .page(page)
+                .workspaceId(workspaceId)
                 .pageSize(pageSize).build();
         getPatchesService.getPhoto(param,dkbh);
         return ResponseResult.success(getPatchesService.getPhoto(param,dkbh));

--
Gitblit v1.9.3