|
|
@@ -71,9 +71,10 @@ public class IotSendMessageService extends SuperService {
|
|
|
return ResultContent.buildFail(String.format("设备不存在:%S", param.getDeviceId()));
|
|
|
}
|
|
|
List<IotMain> list = iotMainDao.findByDeviceIdAndIdentifierAndIotDataType(
|
|
|
- param.getDeviceId(), param.getIdentifier(), IotDataType.Device
|
|
|
- );
|
|
|
+ param.getDeviceId(), param.getIdentifier(), IotDataType.Device);
|
|
|
+
|
|
|
if (ObjectUtils.isEmpty(list)) {
|
|
|
+ log.error("设备没有对应的物模型 {} {}", param.getDeviceId(), param.getIdentifier());
|
|
|
return ResultContent.buildFail("没有对应的设备物模型");
|
|
|
}
|
|
|
GateWayInfo gateWayInfo = null;
|