| | |
| | | @ApiOperation("mes报工接口") |
| | | @PostMapping ("/mesReportingWork") |
| | | public Result mesReportingWork(@RequestBody Map<String,Object> reportingWork){ |
| | | return Result.seccess(reportingWorkService.mesReportingWorkSv(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)); |
| | | } |
| | | |
| | | } |