Commit 750f4a79 authored by 赵啸非's avatar 赵啸非

添加离线 上线日志

parent f843e956
......@@ -84,6 +84,7 @@ public class DirectDynamicListener implements MessageListener {
condition.setId(deviceEntity.getId());
int update = deviceService.getDeviceDao().update(entity, condition);
// deviceService.update(deviceEntity);
deviceService.putCache(deviceEntity.getId().toString(),deviceEntity);
PlatformEntity platformEntity = platformService.get(deviceEntity.getPlatformId());
ProductEntity productEntity = productService.get(deviceEntity.getProductId());
......@@ -91,7 +92,7 @@ public class DirectDynamicListener implements MessageListener {
//新增设备通知第三方平台
deviceService.sendThirdParty(deviceEntity, productEntity, platformEntity, DeviceMethodEnum.ONLINE);
}
log.info("id:{},deviceCode:{} deviceStatus:{},updateRet:{}==>上线 ", deviceEntity.getId(), deviceEntity.getDeviceCode(), entity.getDeviceStatus(),update);
log.info("id:{},deviceCode:{} deviceStatus:{}==>上线 ", deviceEntity.getId(), deviceEntity.getDeviceCode(), deviceEntity.getDeviceStatus());
}
if (!Constant.MESSAGETYPE_HEARTBEAT.equalsIgnoreCase(messageType)) {
DeviceLogEntity deviceLogEntity = new DeviceLogEntity();
......
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