| | |
| | | @PathVariable Integer states, |
| | | @PathVariable Integer code |
| | | ) throws JsonProcessingException { |
| | | if (glassOptimizeService.updateProjectState(projectNumber, state,states,code)) { |
| | | return Result.success(); |
| | | } else { |
| | | throw new ServiceException(Constants.Code_500, "修改失败"); |
| | | |
| | | try { |
| | | if (glassOptimizeService.updateProjectState(projectNumber, state, states, code)) { |
| | | return Result.success(); |
| | | } else { |
| | | throw new ServiceException(Constants.Code_500, "修改失败"); |
| | | } |
| | | } catch (Exception e) { |
| | | return Result.error("201", e.getMessage()); |
| | | } |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | @ApiOperation("mes工程生产不可见接口") |
| | | @PostMapping("/issuingCancelProject") |
| | | public Result issuingCancelProject(@RequestBody String projectNo){ |
| | | return Result.success(glassOptimizeService.issuingCancelProject(projectNo)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |