Commit 794a7497 authored by 赵啸非's avatar 赵啸非

添加智慧办公回调信息

parent 16c6568d
...@@ -47,8 +47,6 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic ...@@ -47,8 +47,6 @@ public class DeviceComsumersRegisterService implements IApplicationStartedServic
sendTaskThreadPool.init(20); sendTaskThreadPool.init(20);
log.info("服务端消息队列初始化服务开始.."); log.info("服务端消息队列初始化服务开始..");
deviceService.find(new DeviceEntity()) deviceService.find(new DeviceEntity())
.stream() .stream()
.filter(f -> !ObjectUtils.isEmpty(platformService.get(f.getPlatformId()))) .filter(f -> !ObjectUtils.isEmpty(platformService.get(f.getPlatformId())))
......
...@@ -103,6 +103,8 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D ...@@ -103,6 +103,8 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
@Autowired @Autowired
private SiteService siteService; private SiteService siteService;
public void refresh() { public void refresh() {
log.info("开始初始化系统参数..."); log.info("开始初始化系统参数...");
try { try {
...@@ -631,7 +633,9 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D ...@@ -631,7 +633,9 @@ public class DeviceServiceImpl extends AbstractCRUDCacheServiceImpl<DeviceDao, D
}; };
messageProducer.queueDelete(Constant.UPLOAD_TOPIC + deviceEntity.getDeviceCode()); messageProducer.queueDelete(Constant.UPLOAD_TOPIC + deviceEntity.getDeviceCode());
messageProducer.queueDelete(Constant.DOWN_TOPIC + deviceEntity.getDeviceCode()); messageProducer.queueDelete(Constant.DOWN_TOPIC + deviceEntity.getDeviceCode());
//删除监听器
container.removeQueueNames(Constant.UPLOAD_TOPIC + deviceEntity.getDeviceCode());
container.removeQueueNames(Constant.DOWN_TOPIC + deviceEntity.getDeviceCode());
//删除扩展extKey //删除扩展extKey
this.removeCache(deviceEntity.getDeviceCode()); this.removeCache(deviceEntity.getDeviceCode());
return id; return id;
......
...@@ -11,6 +11,11 @@ ...@@ -11,6 +11,11 @@
"baseUrl": "http://192.168.0.98:11078/m", "baseUrl": "http://192.168.0.98:11078/m",
"baseLogin": "http://192.168.0.98:11078/base" "baseLogin": "http://192.168.0.98:11078/base"
}, },
"test1": {
"baseUrl": "http://8.136.255.30:11078/m",
"baseLogin": "http://192.168.0.98:11078/base"
},
"portal": { "portal": {
"baseUrl": "http://192.168.0.98:11072/zwfw", "baseUrl": "http://192.168.0.98:11072/zwfw",
"baseLogin": "http://192.168.0.98:11078/base" "baseLogin": "http://192.168.0.98:11078/base"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment