From f373bbf83d9d2a7e5f96118d7dcd658c9fea8bc8 Mon Sep 17 00:00:00 2001
From: feiyu02 <risaku@163.com>
Date: 星期四, 14 八月 2025 17:27:44 +0800
Subject: [PATCH] 2025.8.14 1. 新增文件导入场景信息接口 2. 新增导出接口文档接口

---
 src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt |   16 +++++++++++-----
 1 files changed, 11 insertions(+), 5 deletions(-)

diff --git a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
index 8baf3fa..dac5f41 100644
--- a/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
+++ b/src/main/kotlin/cn/flightfeather/supervision/lightshare/web/ProblemlistController.kt
@@ -88,8 +88,7 @@
     @PostMapping("/check")
     fun checkProblem(
         @ApiParam(value = "闂id涓婚敭") @RequestParam("pId") pId: String,
-        @ApiParam(value = "瀹℃牳鎿嶄綔, 0: 瀹℃牳閫氳繃锛�1: 瀹℃牳涓嶉�氳繃锛�2: 鏁存敼閫氳繃锛�3: 鏁存敼涓嶉�氳繃",
-            allowableValues = "0,1,2,3") @RequestParam("action") action: Byte,
+        @ApiParam(value = "瀹℃牳鎿嶄綔, 0: 瀹℃牳閫氳繃锛�1: 瀹℃牳涓嶉�氳繃锛�2: 鏁存敼閫氳繃锛�3: 鏁存敼涓嶉�氳繃锛�4锛氶棶棰樺鏍告挙鍥烇紱5锛氭暣鏀瑰鏍告挙鍥�") @RequestParam("action") action: Byte,
         @ApiParam(value = "瀹℃牳澶囨敞") @RequestParam("remark") remark: String,
         @ApiParam(value = "鐢ㄦ埛id") @RequestParam("userId") userId: String,
         @ApiParam(value = "鐢ㄦ埛鍚�") @RequestParam("userName") userName: String,
@@ -104,7 +103,7 @@
 
     @ApiOperation("鏇存柊涓�涓棶棰�")
     @PostMapping("/updateProblem")
-    fun updateDeviceLocation(
+    fun updateProblem(
         @ApiParam("闂淇℃伅json") @RequestParam("problem") problem: String,
         @ApiParam("鍒犻櫎鐨勯棶棰樺浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>,
         @ApiParam("闂鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
@@ -119,6 +118,14 @@
         @RequestParam("problemId") problemId: String,
         @RequestPart("images") files: Array<MultipartFile>,
     ) = problemlistService.changeProblem(problemId, files)
+
+    @ApiOperation("鏇存柊涓�涓棶棰樻暣鏀�")
+    @PostMapping("/updateChange")
+    fun updateChange(
+        @ApiParam("闂id") @RequestParam problemId: String,
+        @ApiParam("鍒犻櫎鐨勬暣鏀瑰浘鐗噄d") @RequestParam("deleteImg") deleteImg: List<String>,
+        @ApiParam("鏂板鏁存敼鍥剧墖") @RequestPart("images") images: Array<MultipartFile>,
+    ) = resPack { problemlistService.updateChange(problemId, deleteImg, images) }
 
     @ApiOperation(value = "閫氳繃浠诲姟鏌ユ壘闂")
     @GetMapping("/subtask")
@@ -138,8 +145,7 @@
     @PostMapping("/summary/scene")
     fun getSceneProSummary(
         @RequestBody areaVo: AreaVo,
-        @ApiParam(value = "鎺掑簭瀛楁", allowableValues = "pro, changePer") @RequestParam sortBy: String,
         @ApiParam(value = "椤电爜") @RequestParam(value = "page") page: Int,
         @ApiParam(value = "鍗曢〉鏁版嵁閲�") @RequestParam(value = "per_page") perPage: Int,
-    ) = resPack { problemlistService.getSceneProSummary(areaVo, sortBy, page, perPage) }
+    ) = resPack { problemlistService.getSceneProSummary(areaVo, page, perPage) }
 }
\ No newline at end of file

--
Gitblit v1.9.3