From ba5cd5f54ba5ef279949fbd5184d2888b954c52b Mon Sep 17 00:00:00 2001
From: gongchunyi <deslre0381@gmail.com>
Date: 星期二, 26 五月 2026 10:25:18 +0800
Subject: [PATCH] feat(stock):库存预警数量
---
src/main/java/com/ruoyi/procurementrecord/controller/ProcurementPriceManagementController.java | 24 +++++++++++++-----------
1 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/main/java/com/ruoyi/procurementrecord/controller/ProcurementPriceManagementController.java b/src/main/java/com/ruoyi/procurementrecord/controller/ProcurementPriceManagementController.java
index 4cfa06d..cc9f74c 100644
--- a/src/main/java/com/ruoyi/procurementrecord/controller/ProcurementPriceManagementController.java
+++ b/src/main/java/com/ruoyi/procurementrecord/controller/ProcurementPriceManagementController.java
@@ -2,12 +2,14 @@
import com.baomidou.mybatisplus.core.metadata.IPage;
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.controller.BaseController;
import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.procurementrecord.pojo.ProcurementPriceManagement;
import com.ruoyi.procurementrecord.service.ProcurementPriceManagementService;
-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 jakarta.servlet.http.HttpServletResponse;
import lombok.AllArgsConstructor;
import org.springframework.transaction.annotation.Transactional;
@@ -20,7 +22,7 @@
* @date : 2025/9/17 15:08
*/
@RestController
-@Api(tags = "閲囪喘浠锋牸绠$悊")
+@Tag(name = "閲囪喘浠锋牸绠$悊")
@RequestMapping("/procurementPriceManagement")
@AllArgsConstructor
public class ProcurementPriceManagementController extends BaseController {
@@ -28,30 +30,33 @@
private ProcurementPriceManagementService procurementPriceManagementService;
@GetMapping("/listPage")
- @ApiOperation("閲囪喘浠锋牸绠$悊-鏌ヨ")
+ @Operation(summary = "閲囪喘浠锋牸绠$悊-鏌ヨ")
public AjaxResult listPage(Page page, ProcurementPriceManagement procurementPriceManagement){
IPage<ProcurementPriceManagement> result = procurementPriceManagementService.listPage(page, procurementPriceManagement);
return AjaxResult.success(result);
}
+ @Log(title = "鏂板閲囪喘浠锋牸绠$悊", businessType = BusinessType.INSERT)
@PostMapping("/add")
- @ApiOperation("閲囪喘浠锋牸绠$悊-娣诲姞")
+ @Operation(summary = "閲囪喘浠锋牸绠$悊-娣诲姞")
@Transactional(rollbackFor = Exception.class)
public AjaxResult add(@RequestBody ProcurementPriceManagement procurementPriceManagement){
boolean result = procurementPriceManagementService.save(procurementPriceManagement);
return result ? AjaxResult.success() : AjaxResult.error();
}
+ @Log(title = "淇敼閲囪喘浠锋牸绠$悊", businessType = BusinessType.UPDATE)
@PostMapping("/update")
- @ApiOperation("閲囪喘浠锋牸绠$悊-淇敼")
+ @Operation(summary = "閲囪喘浠锋牸绠$悊-淇敼")
@Transactional(rollbackFor = Exception.class)
public AjaxResult update(@RequestBody ProcurementPriceManagement procurementPriceManagement){
boolean result = procurementPriceManagementService.updateById(procurementPriceManagement);
return result ? AjaxResult.success() : AjaxResult.error();
}
+ @Log(title = "鍒犻櫎閲囪喘浠锋牸绠$悊", businessType = BusinessType.DELETE)
@DeleteMapping("/del")
- @ApiOperation("閲囪喘浠锋牸绠$悊-鍒犻櫎")
+ @Operation(summary = "閲囪喘浠锋牸绠$悊-鍒犻櫎")
@Transactional(rollbackFor = Exception.class)
public AjaxResult delete(@RequestBody List<Long> ids){
if (ids == null || ids.isEmpty()) {
@@ -61,10 +66,7 @@
return result ? AjaxResult.success() : AjaxResult.error();
}
- /**
- * 瀵煎嚭
- * @param response
- */
+ @Log(title = "瀵煎嚭閲囪喘浠锋牸绠$悊", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response) {
procurementPriceManagementService.export(response);
--
Gitblit v1.9.3