| | |
| | | @Operation(summary = "执行不合格品处置") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ncr:dispose')") |
| | | public CommonResult<Boolean> disposeNcr(@Valid @RequestBody MesQcNcrDisposeReqVO disposeReqVO) { |
| | | ncrService.disposeNcr(disposeReqVO.getId(), |
| | | ncrService.disposeNcr(disposeReqVO.getId(), disposeReqVO.getDisposition(), |
| | | disposeReqVO.getHandlerUserId(), disposeReqVO.getHandleResult()); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/submit-approval") |
| | | @Operation(summary = "提交不合格品处理单审批") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ncr:update')") |
| | | public CommonResult<Boolean> submitNcrApproval(@RequestParam("id") Long id) { |
| | | ncrService.submitNcrApproval(id); |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping("/close") |
| | | @Operation(summary = "关闭不合格品处理单") |
| | | @PreAuthorize("@ss.hasPermission('mes:qc-ncr:close')") |