| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ruoyi.basic.dto.StructureTestObjectPartDto; |
| | | import com.ruoyi.common.core.domain.Result; |
| | | import com.ruoyi.basic.pojo.StructureTestObjectPart; |
| | | import com.ruoyi.basic.service.StructureTestObjectPartService; |
| | | 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.*; |
| | | |
| | | |
| | | /** |
| | |
| | | private StructureTestObjectPartService structureTestObjectPartService; |
| | | |
| | | @ApiOperation(value = "根据检验对象id查询零件") |
| | | @PostMapping("/selectByTestObjectId") |
| | | @GetMapping("/selectByTestObjectId") |
| | | public Result selectByTestObjectId(Page page,StructureTestObjectPart structureTestObjectPart){ |
| | | return Result.success(structureTestObjectPartService.selectByTestObjectId(page,structureTestObjectPart)); |
| | | } |
| | |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "检验对象零件复核") |
| | | @PostMapping("/testObjectPartReview") |
| | | public Result testObjectPartReview(@RequestBody StructureTestObjectPartDto structureTestObjectPartDto) { |
| | | structureTestObjectPartService.testObjectPartReview(structureTestObjectPartDto); |
| | | return Result.success(); |
| | | } |
| | | |
| | | @ApiOperation(value = "更新检验对象零件") |
| | | @PostMapping("/updateTestObjectPart") |
| | | public Result updateTestObjectPart(@RequestBody StructureTestObjectPart structureTestObjectPart) { |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "删除检验对象零件") |
| | | @PostMapping("/deleteTestObjectPart") |
| | | @DeleteMapping("/deleteTestObjectPart") |
| | | public Result deleteTestObjectPart(Integer id) { |
| | | structureTestObjectPartService.removeById(id); |
| | | return Result.success(); |