Commit af553ebf by levphon

修复bug

1 parent e5f6a7fd
......@@ -1194,8 +1194,9 @@ public class VehicleService extends AbstractCommonService {
if (totalCountR != null && totalCountR.isSuccess()) {
model.setDevicePointTotal((Integer) totalCountR.getData());
}
// 将剩余电量后面增加%
model.setBatteryLevel(model.getBatteryLevel() + "%");
model.setBatteryLevel(model.getBatteryLevel() == null ? "--" : (model.getBatteryLevel() + "%"));
}
}
......@@ -1710,9 +1711,10 @@ public class VehicleService extends AbstractCommonService {
model.setFreqTypeStr("初始化模式");
}
model.setBatteryLevel(model.getBatteryLevel() == null ? "--" : (model.getBatteryLevel()));
// 设置设备上点总个数
R totalCountR = deviceFeignService.getDevicesTotalCount(sn);
log.info("totalCountR===" + JSON.toJSONString(totalCountR));
if (totalCountR != null && totalCountR.isSuccess()) {
model.setDevicePointTotal((Integer) totalCountR.getData());
}
......
......@@ -585,6 +585,7 @@
ddf.timer AS timer,
ddf.`week` AS `week`,
ddf.week_timer AS weekTimer,
tu.username creator,
tu.username,
tu.account operation
from t_vehicle tv
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!