| | |
| | | commanderForPlatform.register(parentPlatform, null, null); |
| | | } |
| | | |
| | | } else if (parentPlatformOld != null && parentPlatformOld.isEnable() && !parentPlatform.isEnable()) { // 关闭启用时注销 |
| | | } else if (parentPlatformOld != null && parentPlatformOld.isEnable()) { |
| | | // 关闭启用时注销 |
| | | commanderForPlatform.unregister(parentPlatform, null, null); |
| | | } |
| | | return null; |
| | |
| | | @Operation(summary = "保存上级平台信息") |
| | | @PostMapping("/save") |
| | | @ResponseBody |
| | | public String savePlatform(@RequestBody ParentPlatform parentPlatform) { |
| | | public void savePlatform(@RequestBody ParentPlatform parentPlatform) { |
| | | |
| | | if (logger.isDebugEnabled()) { |
| | | logger.debug("保存上级平台信息API调用"); |
| | |
| | | // 停止订阅相关的定时任务 |
| | | subscribeHolder.removeAllSubscribe(parentPlatform.getServerGBId()); |
| | | } |
| | | return null; |
| | | } else { |
| | | throw new ControllerException(ErrorCode.ERROR100.getCode(),"写入数据库失败"); |
| | | } |