dds-电池簇同步数据获取父类stackId

This commit is contained in:
2025-10-15 17:53:12 +08:00
parent 6716852435
commit 391ed354f8

View File

@ -513,9 +513,10 @@ public class DDSDataProcessServiceImpl extends AbstractBatteryDataProcessor impl
return stackDeviceId;
}
}
stackDeviceId = list.get(0).getParentId();
if (stackDeviceId == null || stackDeviceId.isEmpty()) {
return stackDeviceId;
for (EmsDevicesSetting emsDevicesSetting : list) {
if (deviceId.equals(emsDevicesSetting.getDeviceId())) {
stackDeviceId = emsDevicesSetting.getParentId();
}
}
}
return stackDeviceId;