| | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/insOrder") |
| | | @Api("检验单模块") |
| | | @Api(tags="检验单模块") |
| | | public class InsOrderController { |
| | | |
| | | private InsOrderService insOrderService; |
| | |
| | | public Result selectSampleDefects(Integer size, Integer current, String inspectionItems, String orderNumber) { |
| | | return Result.success(insOrderService.selectSampleDefects(new Page<>(current, size),inspectionItems, orderNumber)); |
| | | } |
| | | } |
| | | |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation(value = "更新状态") |
| | | @PutMapping("/updateStatus") |
| | | public Result<?> updateStatus(Integer id) { |
| | | insOrderService.updateStatus(id); |
| | | return Result.success(); |
| | | } |
| | | @ValueClassify("检验下单") |
| | | @ApiOperation("将待检验的的撤销更改") |
| | | @PutMapping("/updateInspected") |
| | | public Result<?> updateInspected(Integer id){ |
| | | insProductService.updateInspected(id); |
| | | return Result.success(); |
| | | } |
| | | } |