zhuo
2025-03-29 e145f248db1bfee531fd095b43abf3725a365e57
basic-server/src/main/java/com/ruoyi/basic/controller/ProductPartController.java
@@ -7,10 +7,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
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;
    @ApiOperation(value = "根据产品id查询零件")
    @PostMapping("/selectByProductId")
    @GetMapping("/selectByProductId")
    public Result selectByProductId(Page page,ProductPart productPart){
        return Result.success(productPartService.selectByProductId(page,productPart));
    }
@@ -41,7 +38,7 @@
    }
    @ApiOperation(value = "删除产品零件")
    @PostMapping("/deleteProductPart")
    @DeleteMapping("/deleteProductPart")
    public Result deleteProductPart(Integer id) {
        productPartService.removeById(id);
        return Result.success();