From 26b18a7699c443685a7ffb38f8c6843110389aa8 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期三, 30 九月 2026 16:17:25 +0800
Subject: [PATCH] feat(migration): 按 dev_新疆_新聚 重新对齐 basic/performance/inspect 三模块
---
basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java | 9 +++------
1 files changed, 3 insertions(+), 6 deletions(-)
diff --git a/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java b/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
index 97c1930..ba50a35 100644
--- a/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
+++ b/basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
@@ -7,10 +7,7 @@
import io.swagger.v3.oas.annotations.tags.Tag;
import io.swagger.v3.oas.annotations.Operation;
import lombok.AllArgsConstructor;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestBody;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.web.bind.annotation.*;
@RestController
@AllArgsConstructor
@@ -21,7 +18,7 @@
private ProductPartService productPartService;
@Operation(summary = "鏍规嵁浜у搧id鏌ヨ闆朵欢")
- @PostMapping("/selectByProductId")
+ @GetMapping("/selectByProductId")
public Result selectByProductId(Page page,ProductPart productPart){
return Result.success(productPartService.selectByProductId(page,productPart));
}
@@ -41,7 +38,7 @@
}
@Operation(summary = "鍒犻櫎浜у搧闆朵欢")
- @PostMapping("/deleteProductPart")
+ @DeleteMapping("/deleteProductPart")
public Result deleteProductPart(Integer id) {
productPartService.removeById(id);
return Result.success();
--
Gitblit v1.9.3