Commit accdb3d4 by 杨林龙

添加日志

1 parent 0e8b2b2a
......@@ -1323,6 +1323,7 @@ public class VehicleService {
if (df1 != null) {
//存在
df1.forEach(deviceFreq -> {
log.info("存在则修改调频状态===" + deviceFreq.getId());
deviceFreq.setUpdatedDate(new Date());
deviceFreq.setUpdatedBy(ShieldContextHolder.getUserId());
deviceFreq.setStatus(2);
......@@ -1363,6 +1364,7 @@ public class VehicleService {
if (powerDtoR != null && powerDtoR.isSuccess()) {
List<DevicePowerDto> powerDataList = powerDtoR.getDataList(new TypeToken<List<DevicePowerDto>>() {
}.getType());
log.info("从大数据侧获取的电量为===" + JsonUtils.toJsonStr(powerDataList));
if (CollectionUtils.isNotEmpty(powerDataList)) {
df.setBatteryLevel(powerDataList.get(0).getSoc() + "%");
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!