From ea531a6f0efba09ca671fee7e406e42955d1f0d1 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期三, 27 五月 2026 17:48:26 +0800
Subject: [PATCH] 编辑采购台账报错异常+供应商往来查询入库金额sql调整优化

---
 src/main/java/com/ruoyi/safe/controller/SafeHiddenFileController.java |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/main/java/com/ruoyi/safe/controller/SafeHiddenFileController.java b/src/main/java/com/ruoyi/safe/controller/SafeHiddenFileController.java
index 227f861..8070bba 100644
--- a/src/main/java/com/ruoyi/safe/controller/SafeHiddenFileController.java
+++ b/src/main/java/com/ruoyi/safe/controller/SafeHiddenFileController.java
@@ -2,11 +2,13 @@
 
 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import com.ruoyi.framework.aspectj.lang.annotation.Log;
+import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
 import com.ruoyi.framework.web.domain.R;
 import com.ruoyi.safe.pojo.SafeHiddenFile;
 import com.ruoyi.safe.service.SafeHiddenFileService;
-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 org.springframework.util.CollectionUtils;
 import org.springframework.web.bind.annotation.*;
 
@@ -23,7 +25,7 @@
  */
 @RestController
 @RequestMapping("/safeHiddenFile")
-@Api(tags = "瀹夊叏鐢熶骇--闅愭偅鎺掓煡涓婃姤--闄勪欢")
+@Tag(name = "瀹夊叏鐢熶骇--闅愭偅鎺掓煡涓婃姤--闄勪欢")
 public class SafeHiddenFileController {
 
     @Resource
@@ -35,8 +37,9 @@
      * @param safeHiddenFile
      * @return
      */
+    @Log(title = "鏂板闅愭偅鏂囦欢", businessType = BusinessType.INSERT)
     @PostMapping("/add")
-    @ApiOperation("鏂板")
+    @Operation(summary = "鏂板")
     public R add(@RequestBody SafeHiddenFile safeHiddenFile) {
         return R.ok(safeHiddenFileService.save(safeHiddenFile));
     }
@@ -46,8 +49,9 @@
      * @param ids
      * @return
      */
+    @Log(title = "鍒犻櫎闅愭偅鏂囦欢", businessType = BusinessType.DELETE)
     @DeleteMapping("/del")
-    @ApiOperation("鍒犻櫎")
+    @Operation(summary = "鍒犻櫎")
     public R delSafeHiddenFile(@RequestBody List<Integer> ids) {
         if(CollectionUtils.isEmpty(ids)){
             return R.fail("璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�");
@@ -63,7 +67,7 @@
      * @return
      */
     @GetMapping("/listPage")
-    @ApiOperation("鍒嗛〉鏌ヨ")
+    @Operation(summary = "鍒嗛〉鏌ヨ")
     public R listPage(Page page, SafeHiddenFile safeHiddenFile) {
         return R.ok(safeHiddenFileService.page(page, Wrappers.<SafeHiddenFile>lambdaQuery().eq(SafeHiddenFile::getSafeHiddenId,safeHiddenFile.getSafeHiddenId())));
     }

--
Gitblit v1.9.3