修正部分参数

This commit is contained in:
2025-07-01 21:58:26 +08:00
parent 9efb87ed24
commit 2c5d4ddd1b

View File

@ -146,6 +146,9 @@ public class FXXDataProcessServiceImpl implements IFXXDataProcessService {
String stackDeviceId = "";
if (up != null && up.size() >0) {
stackDeviceId = up.get(0).getParentId();
if (stackDeviceId != null || stackDeviceId.isEmpty()) {
stackDeviceId = "1";
}
}
//BMS 电池簇
EmsBatteryCluster data = new EmsBatteryCluster();
@ -216,6 +219,9 @@ public class FXXDataProcessServiceImpl implements IFXXDataProcessService {
String stackDeviceId = "";
if (up != null && up.size() >0) {
stackDeviceId = up.get(0).getParentId();
if (stackDeviceId != null || stackDeviceId.isEmpty()) {
stackDeviceId = "1";
}
}
//单体电池
Map<String, Map<String, Object>> records = processData(JSON.parseObject(dataJson, new TypeReference<Map<String, Object>>() {}));