| | |
| | | } |
| | | |
| | | @ApiOperation("报工新增查询") |
| | | @SaCheckPermission("AddReportingWork.search") |
| | | @PostMapping ("/addSelectLastWork/{processIdStr}/{technologyStr}/{process}") |
| | | public Result AddSelectLastWork( |
| | | @PathVariable String processIdStr, |
| | |
| | | @SaCheckPermission("SelectReportingWorks.delete") |
| | | @PostMapping("/deleteWork/{reportingWorkId}/{processId}/{thisProcess}") |
| | | public Result deleteWork(@PathVariable String reportingWorkId,@PathVariable String processId,@PathVariable String thisProcess){ |
| | | if(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)){ |
| | | return Result.seccess(); |
| | | }else { |
| | | throw new ServiceException(Constants.Code_500,"删除失败,请检查是否符合删除条件"); |
| | | // if(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)){ |
| | | // return Result.seccess(); |
| | | // }else { |
| | | // throw new ServiceException(Constants.Code_500,"删除失败,请检查是否符合删除条件"); |
| | | // |
| | | // } |
| | | return Result.seccess(reportingWorkService.deleteWorkSv(reportingWorkId,processId,thisProcess)); |
| | | |
| | | } |
| | | } |
| | | |
| | | @ApiOperation("质检审核查询接口") |
| | |
| | | return Result.seccess(reportingWorkService.detailsQualitySv(reportingWorkId,processId,thisProcess,reportingWork)); |
| | | |
| | | } |
| | | |
| | | @ApiOperation("补片状态查询") |
| | | @PostMapping ("/getPatchCondition/{reportingWorkId}") |
| | | public Result getPatchCondition( |
| | | @PathVariable String reportingWorkId) { |
| | | return Result.seccess(reportingWorkService.getPatchConditionSv(reportingWorkId)); |
| | | } |
| | | |
| | | @ApiOperation("报工新增日志") |
| | | @PostMapping ("/saveReportingWorkLog") |
| | | public Result saveReportingWorkLog(@RequestBody Map<String,Object> reportingWork) { |
| | | return Result.seccess(reportingWorkService.SaveReportingWorkSv(reportingWork)); |
| | | } |
| | | } |