| | |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.web.multipart.MultipartFile; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | @ApiOperation("查询列表") |
| | | @GetMapping("/selectInspection") |
| | | public Result selectInspectionPurchased(Page page, InspectionPurchasedDto inspectionPurchasedDto) { |
| | | return Result.success(inspectionPurchasedService.selectInspectionPurchased(page,inspectionPurchasedDto)); |
| | | return Result.success(inspectionPurchasedService.selectInspectionPurchased(page, inspectionPurchasedDto)); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加外购件检验数据") |
| | |
| | | } |
| | | |
| | | @ApiOperation(value = "更新提交外购件检验数据") |
| | | @PostMapping("/UpdateInspection") |
| | | public Result<?> UpdateInspection(InspectionPurchasedDto inspectionPurchasedDto) throws Exception { |
| | | return Result.success(inspectionPurchasedService.UpdateInspection(inspectionPurchasedDto)); |
| | | @PostMapping("/updateInspection") |
| | | public Result<?> updateInspection(@RequestParam("id") Integer id, |
| | | @RequestParam(value = "file", required = false) MultipartFile file, |
| | | @RequestParam("inspectionItems") String inspectionItems, |
| | | @RequestParam("result") String result) throws Exception { |
| | | return Result.success(inspectionPurchasedService.updateInspection(file, id, inspectionItems, result)); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除外购件检验") |