From 32eb942e25aa366563b7f40b05a382c0c462213c Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期二, 22 七月 2025 10:29:38 +0800
Subject: [PATCH] 修改切面日志功能

---
 se-system/src/main/java/com/terra/system/controller/show/ExportController.java |   45 +++++++++++++++++++++++----------------------
 1 files changed, 23 insertions(+), 22 deletions(-)

diff --git a/se-system/src/main/java/com/terra/system/controller/show/ExportController.java b/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
index c17dd56..bc8547b 100644
--- a/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
+++ b/se-system/src/main/java/com/terra/system/controller/show/ExportController.java
@@ -1,24 +1,25 @@
 package com.terra.system.controller.show;
 
-import com.terra.system.annotation.SysLog;
-import com.terra.system.controller.all.BaseController;
-import com.terra.system.entity.all.HttpStatus;
-import com.terra.system.entity.all.ResponseMsg;
+import com.terra.common.annotation.SysLog;
+import com.terra.common.controller.all.BaseController;
+import com.terra.common.entity.all.HttpStatus;
+import com.terra.common.entity.all.ResponseMsg;
 import com.terra.system.entity.data.DownloadEntity;
 import com.terra.system.entity.show.ExportEntity;
 import com.terra.system.entity.sys.UserEntity;
-import com.terra.system.helper.StringHelper;
-import com.terra.system.helper.WebHelper;
+import com.terra.common.helper.StringHelper;
+import com.terra.common.helper.WebHelper;
 import com.terra.system.service.data.DownloadService;
 import com.terra.system.service.show.ExportService;
 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.tags.Tag;
 import org.springframework.web.bind.annotation.*;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
@@ -28,7 +29,7 @@
  * 鍦ㄧ嚎鍒跺浘
  * @author WWW
  */
-@Api(tags = "缁煎悎灞曠ず\\鍦ㄧ嚎鍒跺浘")
+@Tag(name = "缁煎悎灞曠ず\\鍦ㄧ嚎鍒跺浘")
 @RestController
 @RequestMapping("/export")
 public class ExportController  extends BaseController {
@@ -45,11 +46,11 @@
     DownloadService downloadService;
 
     @SysLog()
-    @ApiOperation(value = "鍒嗛〉鏌ヨ涓嬭浇鏂囦欢")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "name", value = "鍚嶇О", dataType = "String", paramType = "query", example = ""),
-            @ApiImplicitParam(name = "pageSize", value = "姣忛〉鏉℃暟", dataType = "Integer", paramType = "query", example = "10"),
-            @ApiImplicitParam(name = "pageIndex", value = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", dataType = "Integer", paramType = "query", example = "1")
+    @Operation(summary = "鍒嗛〉鏌ヨ涓嬭浇鏂囦欢")
+    @Parameters({
+            @Parameter(name = "name", description = "鍚嶇О", in = ParameterIn.QUERY, example = ""),
+            @Parameter(name = "pageSize", description = "姣忛〉鏉℃暟", in = ParameterIn.QUERY, example = "10"),
+            @Parameter(name = "pageIndex", description = "鍒嗛〉鏁帮紙浠�1寮�濮嬶級", in = ParameterIn.QUERY, example = "1")
     })
     @GetMapping(value = "/selectByPage")
     public ResponseMsg<List<DownloadEntity>> selectPageCountForDownload(String name, Integer pageSize, Integer pageIndex, HttpServletRequest req) {
@@ -76,9 +77,9 @@
     }
 
     @SysLog()
-    @ApiOperation(value = "鏂板缓鍑哄浘")
-    @ApiImplicitParams({
-            @ApiImplicitParam(name = "entity", value = "鍦ㄧ嚎鍒跺浘瀹炰綋绫�", dataType = "ExportEntity", paramType = "body")
+    @Operation(summary = "鏂板缓鍑哄浘")
+    @Parameters({
+            @Parameter(name = "entity", description = "鍦ㄧ嚎鍒跺浘瀹炰綋绫�")
     })
     @ResponseBody
     @PostMapping(value = "/insertMap", produces = "application/json; charset=UTF-8")
@@ -106,9 +107,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) {

--
Gitblit v1.9.3