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/SafeContingencyPlanController.java |   19 ++++++++++++-------
 1 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/src/main/java/com/ruoyi/safe/controller/SafeContingencyPlanController.java b/src/main/java/com/ruoyi/safe/controller/SafeContingencyPlanController.java
index 8f90e8d..75844dc 100644
--- a/src/main/java/com/ruoyi/safe/controller/SafeContingencyPlanController.java
+++ b/src/main/java/com/ruoyi/safe/controller/SafeContingencyPlanController.java
@@ -1,11 +1,13 @@
 package com.ruoyi.safe.controller;
 
 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.SafeContingencyPlan;
 import com.ruoyi.safe.service.SafeContingencyPlanService;
-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.web.bind.annotation.*;
 
@@ -21,31 +23,34 @@
  */
 @RestController
 @RequestMapping("/safeContingencyPlan")
-@Api(tags = "瀹夊叏鐢熶骇--搴旀�ラ妗堟煡闃�")
+@Tag(name = "瀹夊叏鐢熶骇--搴旀�ラ妗堟煡闃�")
 @AllArgsConstructor
 public class SafeContingencyPlanController {
 
     private final SafeContingencyPlanService safeContingencyPlanService;
 
     @GetMapping("/page")
-    @ApiOperation("鍒嗛〉鏌ヨ")
+    @Operation(summary = "鍒嗛〉鏌ヨ")
     public R page(Page page, SafeContingencyPlan safeContingencyPlan) {
         return R.ok(safeContingencyPlanService.pageSafeContingencyPlan(page, safeContingencyPlan));
     }
 
-    @ApiOperation("鏂板搴旀�ラ妗堟煡闃�")
+    @Log(title = "鏂板搴旀�ラ妗�", businessType = BusinessType.INSERT)
+    @Operation(summary = "鏂板搴旀�ラ妗堟煡闃�")
     @PostMapping()
     public R add(@RequestBody SafeContingencyPlan safeContingencyPlan) {
         return R.ok(safeContingencyPlanService.save(safeContingencyPlan));
     }
 
-    @ApiOperation("淇敼搴旀�ラ妗堟煡闃�")
+    @Log(title = "淇敼搴旀�ラ妗�", businessType = BusinessType.UPDATE)
+    @Operation(summary = "淇敼搴旀�ラ妗堟煡闃�")
     @PutMapping ()
     public R update(@RequestBody  SafeContingencyPlan safeContingencyPlan) {
         return R.ok(safeContingencyPlanService.updateById(safeContingencyPlan));
     }
 
-    @ApiOperation("鍒犻櫎搴旀�ラ妗堟煡闃�")
+    @Log(title = "鍒犻櫎搴旀�ラ妗�", businessType = BusinessType.DELETE)
+    @Operation(summary = "鍒犻櫎搴旀�ラ妗堟煡闃�")
     @DeleteMapping("/{ids}")
     public R delSafeCertification(@RequestBody List<Integer> ids) {
         return R.ok(safeContingencyPlanService.removeBatchByIds(ids));

--
Gitblit v1.9.3