From 271f4a25576ac6c2c8f2c4eb4c9782d6eef85124 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 07 五月 2026 13:13:55 +0800
Subject: [PATCH] 修改报错

---
 src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java b/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
index 676c672..2f1496b 100644
--- a/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
+++ b/src/main/java/com/ruoyi/staff/controller/PersonalShiftController.java
@@ -12,8 +12,8 @@
 import com.ruoyi.staff.service.PersonalShiftService;
 import com.ruoyi.staff.utils.StyleMonthUtils;
 import com.ruoyi.staff.utils.StyleYearUtils;
-import io.swagger.annotations.Api;
-import io.swagger.annotations.ApiOperation;
+import io.swagger.v3.oas.annotations.tags.Tag;
+import io.swagger.v3.oas.annotations.Operation;
 import lombok.AllArgsConstructor;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.web.bind.annotation.*;
@@ -35,38 +35,38 @@
  */
 @RestController
 @RequestMapping("/personalShift")
-@Api(tags = "浜哄憳鎺掔彮")
+@Tag(name = "浜哄憳鎺掔彮")
 @AllArgsConstructor
 public class PersonalShiftController {
 
     private PersonalShiftService personalShiftService;
 
-    @ApiOperation("浜哄憳鎺掔彮")
+    @Operation(summary = "浜哄憳鎺掔彮")
     @PostMapping("/add")
     public R add(@RequestBody PerformanceShiftAddDto performanceShiftAddDto){
         return R.ok(personalShiftService.performanceShiftAdd(performanceShiftAddDto));
     }
 
-    @ApiOperation(value = "鏈堜唤鍒嗛〉鏌ヨ")
+    @Operation(summary = "鏈堜唤鍒嗛〉鏌ヨ")
     @GetMapping("page")
     public R performanceShiftPage(Integer size, Integer current, String time, String userName, Integer sysDeptId) {
         return R.ok(personalShiftService.performanceShiftPage(new Page<>(current, size), time, userName, sysDeptId));
     }
 
-    @ApiOperation(value = "骞翠唤鍒嗛〉鏌ヨ")
+    @Operation(summary = "骞翠唤鍒嗛〉鏌ヨ")
     @GetMapping("pageYear")
     public R performanceShiftPageYear(Integer size, Integer current, String time, String userName, Integer sysDeptId) {
         return R.ok(personalShiftService.performanceShiftPageYear(new Page<>(current, size), time, userName, sysDeptId));
     }
 
-    @ApiOperation(value = "鐝鐘舵�佷慨鏀�")
+    @Operation(summary = "鐝鐘舵�佷慨鏀�")
     @PostMapping("update")
     public R performanceShiftUpdate(@RequestBody PersonalShift personalShift) {
         personalShiftService.performanceShiftUpdate(personalShift);
         return R.ok();
     }
 
-    @ApiOperation(value = "瀵煎嚭")
+    @Operation(summary = "瀵煎嚭")
     @GetMapping("export")
     public void exportToExcel(@NotNull(message = "鏃堕棿涓嶈兘涓虹┖锛�") String time, String userName, Integer sysDeptId, Boolean isMonth, HttpServletResponse response) throws Exception {
         ServletOutputStream out = response.getOutputStream();

--
Gitblit v1.9.3