设备列表电量显示问题,打印日志优化

This commit is contained in:
2025-08-06 10:38:21 +08:00
parent 57f074995e
commit 67764a733e
7 changed files with 7 additions and 21 deletions

View File

@ -166,13 +166,10 @@ public class AppDeviceBizService {
}
String location = RedisUtils.getCacheObject(GLOBAL_REDIS_KEY+DeviceRedisKeyConstants.DEVICE_LOCATION_KEY_PREFIX + item.getDeviceImei());
// 获取电量
if(StringUtils.isNotBlank(location)){
JSONObject jsonObject = JSONObject.parseObject(location);
item.setLatitude(jsonObject.getString("latitude"));
item.setLongitude(jsonObject.getString("longitude"));
}else{
item.setBattery("0");
}
}
});