Commit a622e0ce by huangjy

feat,获取最新一条设备属性上报接口

parent e231ee10
...@@ -74,8 +74,9 @@ public class IotProductDeviceService extends IotCommonService { ...@@ -74,8 +74,9 @@ public class IotProductDeviceService extends IotCommonService {
* 可以传 :reportProperty * 可以传 :reportProperty
* @return * @return
*/ */
public List<DeviceOperationLogEntity> getLastDeviceLogByType(String deviceId,String typeValue) { public DeviceOperationLogEntity getLastDeviceLogByType(String deviceId,String typeValue) {
return getDeviceLog(deviceId, 1,typeValue); List<DeviceOperationLogEntity> deviceOperationLogEntities = getDeviceLog(deviceId, 1, typeValue);
return CollectionUtils.isNotEmpty(deviceOperationLogEntities) ? deviceOperationLogEntities.get(0) : null;
} }
/** /**
......
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 sign in to comment