From efb0d6f50d446e56949e23f3f8cb230d719a7b2d Mon Sep 17 00:00:00 2001
From: rain <167982779@qq.com>
Date: Tue, 02 Jul 2024 17:21:12 +0800
Subject: [PATCH] 增加国标直播接口,完成人工图片与图斑绑定,修改图片获取接口,获取前更新人工图片的图斑绑定

---
 src/main/java/com/dji/sample/territory/controller/TbFjController.java |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/src/main/java/com/dji/sample/territory/controller/TbFjController.java b/src/main/java/com/dji/sample/territory/controller/TbFjController.java
index c65dbed..660aafd 100644
--- a/src/main/java/com/dji/sample/territory/controller/TbFjController.java
+++ b/src/main/java/com/dji/sample/territory/controller/TbFjController.java
@@ -23,15 +23,23 @@
     @Autowired
     private ITbFJService tbFJService;
     @Autowired
-    private GetPatchesService getPatches;
+    private GetPatchesService getPatchesService;
 
+    /**
+     * 将地块所保留的照片、视频信息保存到sqlite
+     *
+     * @param dkbh
+     * @param workspaceId
+     * @return
+     * @throws IOException
+     */
     @PostMapping("/insertDb")
-    public ResponseResult insertDb(String dkbh, String workspaceId) throws IOException {
-        List<MediaFileEntity> list = getPatches.listPohto(dkbh, workspaceId);
+    public ResponseResult insertDb(String dkbh, String workspaceId) throws Exception {
+        List<MediaFileEntity> list = getPatchesService.listPohto(dkbh, workspaceId);
         if (list.size() == 0) {
             return ResponseResult.error("未找到该照片、视频信息");
         }
-        LotInfo lotInfo = getPatches.getLotinfo(dkbh, workspaceId);
+        LotInfo lotInfo = getPatchesService.getLotinfo(dkbh, workspaceId);
         if (lotInfo == null) {
             return ResponseResult.error("未找到该图斑信息");
         }

--
Gitblit v1.9.3