From b8d62de41ff7e1e0549061308aa11f68cf881ed9 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期三, 16 七月 2025 17:01:20 +0800
Subject: [PATCH] 修改所有的controller

---
 se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java |   93 ++++++++++++++++++++++++----------------------
 1 files changed, 48 insertions(+), 45 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java b/se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java
index 5ba370e..3b0ba99 100644
--- a/se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java
+++ b/se-system/src/main/java/com/terra/system/controller/show/ComprehensiveController.java
@@ -25,11 +25,14 @@
 import com.terra.system.service.sys.AttachService;
 import com.terra.system.service.sys.DownlogService;
 import com.terra.system.service.sys.TokenService;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiImplicitParam;
-import io.swagger.annotations.ApiImplicitParams;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.Operation;
+import io.swagger.v3.oas.annotations.Parameter;
+import io.swagger.v3.oas.annotations.Parameters;
 import javax.annotation.Resource;
+
+import io.swagger.v3.oas.annotations.enums.ParameterIn;
+import io.swagger.v3.oas.annotations.media.Schema;
+import io.swagger.v3.oas.annotations.tags.Tag;
 import org.springframework.web.multipart.MultipartFile;
 
 import org.springframework.web.bind.annotation.*;
@@ -41,7 +44,7 @@
  * 缁煎悎灞曠ず
  * @author WWW
  */
-@Api(tags = "缁煎悎灞曠ず\\棣栭〉")
+@Tag(name = "缁煎悎灞曠ず\\棣栭〉")
 @RestController
 @RequestMapping("/comprehensive")
 public class ComprehensiveController extends ModelController {
@@ -79,9 +82,9 @@
     UploadAttachService uploadAttachService;
 
     @SysLog()
-    @ApiOperation(value = "鏍规嵁ID鏌ヨ鍙戝竷娓呭崟")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "id", value = "ID", dataType = "int", paramType = "query", example = "1")
+    @Operation(summary = "鏍规嵁ID鏌ヨ鍙戝竷娓呭崟")
+    @Parameters({
+            @Parameter(name = "id", description = "ID", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectPubById")
     public ResponseMsg<PublishEntity> selectPubById(int id) {
@@ -95,9 +98,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ绠$嚎")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "name", value = "鍚嶇О", dataType = "String", paramType = "query", example = "瑗挎皵涓滆緭"),
+    @Operation(summary = "鏌ヨ绠$嚎")
+    @Parameters({
+            @Parameter(name = "name", description = "鍚嶇О", in = ParameterIn.QUERY, example = "瑗挎皵涓滆緭"),
     })
     @GetMapping(value = "/selectPipelines")
     public ResponseMsg<Object> selectPipelines(String name) {
@@ -111,12 +114,12 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ璺綉")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "x1", value = "X1", dataType = "Double", paramType = "query", example = "116.78999"),
-            @ApiImplicitParam(name = "y1", value = "Y1", dataType = "Double", paramType = "query", example = "39.9468"),
-            @ApiImplicitParam(name = "x2", value = "X2", dataType = "Double", paramType = "query", example = "116.80458"),
-            @ApiImplicitParam(name = "y2", value = "Y2", dataType = "Double", paramType = "query", example = "39.94758")
+    @Operation(summary = "鏌ヨ璺綉")
+    @Parameters({
+            @Parameter(name = "x1", description = "X1", in = ParameterIn.QUERY, example = "116.78999"),
+            @Parameter(name = "y1", description = "Y1", in = ParameterIn.QUERY, example = "39.9468"),
+            @Parameter(name = "x2", description = "X2", in = ParameterIn.QUERY, example = "116.80458"),
+            @Parameter(name = "y2", description = "Y2", in = ParameterIn.QUERY, example = "39.94758")
     })
     @GetMapping(value = "/selectRoute")
     public ResponseMsg<Object> selectRoute(double x1, double y1, double x2, double y2) {
@@ -130,7 +133,7 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓婁紶ShapeFile鏂囦欢")
+    @Operation(summary = "涓婁紶ShapeFile鏂囦欢")
     @ResponseBody
     @PostMapping(value = "/uploadShp", produces = "application/json; charset=UTF-8")
     public ResponseMsg<Object> uploadShp(HttpServletRequest req, HttpServletResponse res) {
@@ -154,9 +157,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓嬭浇ShapeFile鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "list", value = "鏍囩粯JSON瀹炰綋绫婚泦鍚�", dataType = "MarkJsonEntity", paramType = "body")
+    @Operation(summary = "涓嬭浇ShapeFile鏂囦欢")
+    @Parameters({
+            @Parameter(name = "list", description = "鏍囩粯JSON瀹炰綋绫婚泦鍚�")
     })
     @ResponseBody
     @PostMapping(value = "/downloadShp", produces = "application/json; charset=UTF-8")
@@ -182,11 +185,11 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓婁紶鏂囦欢")
+    @Operation(summary = "涓婁紶鏂囦欢")
     @ResponseBody
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "tabName", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "lf.sys_style"),
-            @ApiImplicitParam(name = "eventid", value = "涓婚敭", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
+    @Parameters({
+            @Parameter(name = "tabName", description = "琛ㄥ悕", in = ParameterIn.QUERY, example = "lf.sys_style"),
+            @Parameter(name = "eventid", description = "涓婚敭", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
     })
     @PostMapping(value = "/uploadFiles")
     public ResponseMsg<Integer> uploadFiles(String tabName, String eventid, @RequestParam("file") MultipartFile[] files, HttpServletRequest req) {
@@ -208,9 +211,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "鏂囦欢GUID", dataType = "String", paramType = "query")
+    @Operation(summary = "涓嬭浇鏂囦欢")
+    @Parameters({
+            @Parameter(name = "guid", description = "鏂囦欢GUID", in = ParameterIn.QUERY)
     })
     @RequestMapping(value = "/downloadFile", method = RequestMethod.GET)
     public void downloadFile(String guid, HttpServletRequest req, HttpServletResponse res) {
@@ -236,9 +239,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ョ湅鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guid", value = "闄勪欢Guid", dataType = "String", paramType = "body")
+    @Operation(summary = "鏌ョ湅鏂囦欢")
+    @Parameters({
+            @Parameter(name = "guid", description = "闄勪欢Guid")
     })
     @GetMapping(value = "/downloadForView")
     public void downloadForView(String guid, HttpServletResponse res) {
@@ -246,9 +249,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "璇锋眰涓嬭浇")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "guids", value = "闄勪欢Guid鏁扮粍", dataType = "String", paramType = "body", allowMultiple = true, example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
+    @Operation(summary = "璇锋眰涓嬭浇")
+    @Parameters({
+            @Parameter(name = "guids", description = "闄勪欢Guid鏁扮粍", schema = @Schema(type = "array"), example = "e5b6ae0889b88111f13a4b6e048348db,fa4f299e901a0c46e634f8fcc8185c0c")
     })
     @ResponseBody
     @PostMapping(value = "/downloadReqForGuids")
@@ -268,10 +271,10 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "璇锋眰涓嬭浇")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "tab", value = "琛ㄥ悕", dataType = "String", paramType = "body", example = "bd.b_borehole"),
-            @ApiImplicitParam(name = "guids", value = "闄勪欢Guid鏁扮粍", dataType = "String", paramType = "body", allowMultiple = true, example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
+    @Operation(summary = "璇锋眰涓嬭浇")
+    @Parameters({
+            @Parameter(name = "tab", description = "琛ㄥ悕", example = "bd.b_borehole"),
+            @Parameter(name = "guids", description = "闄勪欢Guid鏁扮粍", schema = @Schema(type = "array"), example = "08e5b4ad-93b8-46f6-adaa-46a6274af4ce,6f94f4f8-6e8d-44e7-8803-3d068d34983f")
     })
     @ResponseBody
     @PostMapping(value = "/downloadReqForTabGuids")
@@ -294,10 +297,10 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏌ヨ鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "tabName", value = "琛ㄥ悕", dataType = "String", paramType = "query", example = "lf.sys_style"),
-            @ApiImplicitParam(name = "eventid", value = "涓婚敭", dataType = "String", paramType = "query", example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
+    @Operation(summary = "鏌ヨ鏂囦欢")
+    @Parameters({
+            @Parameter(name = "tabName", description = "琛ㄥ悕", in = ParameterIn.QUERY, example = "lf.sys_style"),
+            @Parameter(name = "eventid", description = "涓婚敭", in = ParameterIn.QUERY, example = "fa25979a5ef8b43ba82a0be35b3fb0d4")
     })
     @GetMapping(value = "/selectFiles")
     public ResponseMsg<List<AttachEntity>> selectFiles(String tabName, String eventid) {
@@ -315,9 +318,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鍒犻櫎鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "ids", value = "ID鏁扮粍", dataType = "Integer", paramType = "query", example = "1,2")
+    @Operation(summary = "鍒犻櫎鏂囦欢")
+    @Parameters({
+            @Parameter(name = "ids", description = "ID鏁扮粍", in = ParameterIn.QUERY, example = "1,2")
     })
     @GetMapping(value = "/deletes")
     public ResponseMsg<Integer> deleteFiles(@RequestParam List<Integer> ids) {

--
Gitblit v1.9.3