| | |
| | | |
| | | @ApiOperation("报工新增查询") |
| | | @SaCheckPermission("AddReportingWork.search") |
| | | @PostMapping ("/addSelectLastWork/{processIdStr}/{technologyStr}/{process}") |
| | | @PostMapping ("/addSelectLastWork/{processIdStr}/{technologyStr}/{process}/{reportType}") |
| | | public Result AddSelectLastWork( |
| | | @PathVariable String processIdStr, |
| | | @PathVariable String technologyStr, |
| | | @PathVariable String process) { |
| | | return Result.seccess(reportingWorkService.AddSelectLastWorkSv(processIdStr,technologyStr,process)); |
| | | @PathVariable String process, |
| | | @PathVariable String reportType) { |
| | | return Result.seccess(reportingWorkService.AddSelectLastWorkSv(processIdStr,technologyStr,process,reportType)); |
| | | } |
| | | @ApiOperation("查询工序") |
| | | @PostMapping ("/selectProcess") |
| | |
| | | return Result.seccess(reportingWorkService.getPatchConditionSv(reportingWorkId)); |
| | | } |
| | | |
| | | @ApiOperation("mes报工接口") |
| | | @PostMapping ("/mesReportingWork") |
| | | public Result mesReportingWork(@RequestBody Map<String,Object> reportingWork){ |
| | | Boolean aBoolean = reportingWorkService.mesReportingWorkSv(reportingWork); |
| | | if(aBoolean){ |
| | | return Result.seccess(aBoolean); |
| | | }else{ |
| | | throw new ServiceException(Constants.Code_600, "上工序已完工数量小于本工序报工数量,请检查"); |
| | | } |
| | | } |
| | | @ApiOperation("mes报工次破新增") |
| | | @PostMapping ("/mesSaveReportingWorkWorn") |
| | | public Result mesSaveReportingWorkWorn(@RequestBody Map<String,Object> reportingWork) { |
| | | return Result.seccess(reportingWorkService.SaveReportingWorkSv(reportingWork)); |
| | | } |
| | | |
| | | } |