gaoluyang
2026-09-30 26b18a7699c443685a7ffb38f8c6843110389aa8
basic-server/src/main/java/com/ruoyi/basic/controller/StructureTestObjectPartController.java
@@ -8,10 +8,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.*;
/**
@@ -29,7 +26,7 @@
    private StructureTestObjectPartService structureTestObjectPartService;
    @Operation(summary = "根据检验对象id查询零件")
    @PostMapping("/selectByTestObjectId")
    @GetMapping("/selectByTestObjectId")
    public Result selectByTestObjectId(Page page,StructureTestObjectPart structureTestObjectPart){
        return Result.success(structureTestObjectPartService.selectByTestObjectId(page,structureTestObjectPart));
    }
@@ -49,7 +46,7 @@
    }
    @Operation(summary = "删除检验对象零件")
    @PostMapping("/deleteTestObjectPart")
    @DeleteMapping("/deleteTestObjectPart")
    public Result deleteTestObjectPart(Integer id) {
        structureTestObjectPartService.removeById(id);
        return Result.success();