From 7166f4e2f86ed2532a38d5c210284dd9ca7be4c7 Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Mon, 03 Jun 2024 13:57:45 +0800
Subject: [PATCH] 图斑编号模糊搜索功能

---
 src/main/java/com/dji/sample/patches/controller/PatchesController.java |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/dji/sample/patches/controller/PatchesController.java b/src/main/java/com/dji/sample/patches/controller/PatchesController.java
index 3e53592..c5aa58c 100644
--- a/src/main/java/com/dji/sample/patches/controller/PatchesController.java
+++ b/src/main/java/com/dji/sample/patches/controller/PatchesController.java
@@ -41,6 +41,7 @@
     private TbDkjbxxServiceImpl tbDkjbxxService;
     @Autowired
     private TimerUtil timerUtil;
+
     /**
      * 根据workspaceId获取图斑列表信息
      *
@@ -53,12 +54,17 @@
     @SysLogAnnotation(operModul = "图斑", operType = "查询", operDesc = "查询图斑的全部信息")
     public ResponseResult<PaginationData<LotInfo>> page(@RequestParam Integer page,
                                                         @RequestParam(name = "page_size", defaultValue = "10") Integer pageSize,
-                                                        @RequestParam String workspaceId) {
+                                                        @RequestParam String workspaceId,
+                                                        @RequestParam(name = "dkbh", defaultValue = "") String dkbh
+    ) {
         //调用service分页查询
         PatchesParam param = PatchesParam.builder()
                 .page(page)
                 .workspaceId(workspaceId)
-                .pageSize(pageSize).build();
+                .pageSize(pageSize)
+                .dkbh(dkbh)
+                .build();
+
         PaginationData<LotInfo> data = getPatchesService.limitGet(param);
         return ResponseResult.success(data);
     }
@@ -74,10 +80,16 @@
         getPatchesService.delPatches();
         return ResponseResult.success();
     }
+
     @GetMapping("/useMyTask")
     public ResponseResult useMyTask() throws Exception {
-        timerUtil.myTask();
-        return ResponseResult.success();
+        try {
+//            timerUtil.myTask();
+            timerUtil.myTask2();
+            return ResponseResult.success();
+        } catch (Exception e) {
+            throw new RuntimeException("db存储发送出现异常");
+        }
     }
 
     /**

--
Gitblit v1.9.3