Commit e4cc559e by huangjy

fix:添加缓存

parent 90fe71bf
......@@ -161,8 +161,8 @@ public class IotProductDeviceService extends IotCommonService {
int movebodyRandomLong = RandomUtils.nextInt(40,90);
deviceInfoContentBreathe = new DeviceInfoContentBreathe();
LocalDateTime localDateTime = startTime.plusMinutes(i);
Timestamp timestamp = new Timestamp(localDateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli());
deviceInfoContentBreathe.setTimestamp(timestamp.getDateTime());
long timeStamp = localDateTime.atZone(ZoneId.systemDefault()).toInstant().toEpochMilli();
deviceInfoContentBreathe.setTimestamp(timeStamp);
DeviceInfoContentBreathe.Properties properties = new DeviceInfoContentBreathe.Properties();
properties.setBr(brRandomLong);
properties.setHr(hrRandomLong);
......
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