事件上报新增deviceEvent

This commit is contained in:
huguanghan 2024-11-04 10:22:23 +08:00
parent 52f51bf88b
commit 5e3f592be4

View File

@ -307,8 +307,7 @@ public class NodeMessageServiceImpl implements NodeMessageService {
deviceEventInfo.setDeviceName(deviceInfoCache.getDeviceName());
deviceEventInfo.setDeviceCode(deviceInfoCache.getDeviceCode());
String eventType = getEventType(item.getEventType());
String model = dataService.iotModelMap.get(item.getDeviceId());
log.info("物模型缓存{}",dataService.iotModelMap);
String model = dataService.deviceModelMap.get(item.getDeviceId());
if (StringUtils.isEmpty(model)){
log.debug("未查询到物模型code设备id{}",item.getDeviceId());
}