| | |
| | | return Result.seccess(reportingWorkService.AddSelectLastWorkSv(processIdStr,technologyStr,process,reportType)); |
| | | } |
| | | @ApiOperation("查询工序") |
| | | @PostMapping ("/selectProcess") |
| | | public Result SelectProcess() { |
| | | return Result.seccess(reportingWorkService.SelectProcessSv()); |
| | | @PostMapping ("/selectProcess/{userId}") |
| | | public Result SelectProcess(@PathVariable String userId) { |
| | | return Result.seccess(reportingWorkService.SelectProcessSv(userId)); |
| | | } |
| | | |
| | | @ApiOperation("报工新增") |
| | |
| | | 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)); |
| | | } |
| | | |
| | | } |