| | |
| | | @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()); |
| | | } |
| | | } |
| | | |