Commit 0b6bc736 authored by 赵啸非's avatar 赵啸非

添加离线 上线日志

parent 50eddd6a
...@@ -81,10 +81,7 @@ public class CustomerKeyExpirationListener implements MessageListener { ...@@ -81,10 +81,7 @@ public class CustomerKeyExpirationListener implements MessageListener {
deviceService.getDeviceDao().update(entity, condition); deviceService.getDeviceDao().update(entity, condition);
log.info("deviceCode:{},deviceName:{}==>离线", deviceEntity.getDeviceCode(), deviceEntity.getDeviceName()); log.info("deviceCode:{},deviceName:{}==>离线", deviceEntity.getDeviceCode(), deviceEntity.getDeviceName());
// deviceService.update(deviceEntity); // deviceService.update(deviceEntity);
PlatformEntity platformEntity = platformService.get(deviceEntity.getPlatformId()); PlatformEntity platformEntity = platformService.get(deviceEntity.getPlatformId());
ProductEntity productEntity = productService.get(deviceEntity.getProductId()); ProductEntity productEntity = productService.get(deviceEntity.getProductId());
if (!ObjectUtils.isEmpty(platformEntity) && !ObjectUtils.isEmpty(productEntity)) { if (!ObjectUtils.isEmpty(platformEntity) && !ObjectUtils.isEmpty(productEntity)) {
......
...@@ -89,7 +89,7 @@ public class DirectDynamicListener implements MessageListener { ...@@ -89,7 +89,7 @@ public class DirectDynamicListener implements MessageListener {
ProductEntity productEntity = productService.get(deviceEntity.getProductId()); ProductEntity productEntity = productService.get(deviceEntity.getProductId());
if (!ObjectUtils.isEmpty(platformEntity) && !ObjectUtils.isEmpty(productEntity)) { if (!ObjectUtils.isEmpty(platformEntity) && !ObjectUtils.isEmpty(productEntity)) {
//新增设备通知第三方平台 //新增设备通知第三方平台
deviceService.sendThirdParty(deviceEntity, productEntity, platformEntity, DeviceMethodEnum.ONLINE); // deviceService.sendThirdParty(deviceEntity, productEntity, platformEntity, DeviceMethodEnum.ONLINE);
} }
log.info("deviceCode:{},deviceName:{}==>上线", deviceEntity.getDeviceCode(), deviceEntity.getDeviceName()); log.info("deviceCode:{},deviceName:{}==>上线", deviceEntity.getDeviceCode(), deviceEntity.getDeviceName());
} }
......
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