Commit 2bf257ca by 杨林龙

Merge remote-tracking branch 'origin/feature' into feature

2 parents df2846eb f1956ac5
......@@ -1149,6 +1149,9 @@ public class VehicleService extends AbstractCommonService {
//将剩余电量后面增加%,无线设备才有电量
if (Objects.equals(DeviceWireTypeEnum.WIRELESS.getType(), vehicleInfo.getDeviceType())) {
vehicleInfo.setBatteryLevel(vehicleInfo.getBatteryLevel() == null ? "--" : (vehicleInfo.getBatteryLevel() + "%"));
} else {
//其它类型设备电量置空,预防垃圾数据
vehicleInfo.setBatteryLevel(null);
}
//设置设备状态
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!