bug修复:类型转换

This commit is contained in:
attiya 2025-07-31 16:40:51 +08:00
parent 9aef7b04b8
commit b7e9f57ce1

View File

@ -1573,7 +1573,7 @@ public class EbikeBikeInfoServiceImpl extends ServiceImpl<EbikeBikeInfoMapper, E
resEbikeInfoRegionDto.setLatestTimestamp(String.valueOf(latestTimestamp));
resEbikeInfoRegionDto.setIntervalTime(TimeUtils.hoursSince(latestTimestamp.longValue()));
}
LocalDateTime refreshTimestamp =Instant.ofEpochMilli((Long)resGPSDto.getTimestamp())
LocalDateTime refreshTimestamp =Instant.ofEpochMilli(resGPSDto.getTimestamp().longValue())
.atZone(ZoneId.systemDefault())
.toLocalDateTime();
if (refreshTimestamp != null) {