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; return stackDeviceId;
} }
} }
stackDeviceId = list.get(0).getParentId(); for (EmsDevicesSetting emsDevicesSetting : list) {
if (stackDeviceId == null || stackDeviceId.isEmpty()) { if (deviceId.equals(emsDevicesSetting.getDeviceId())) {
return stackDeviceId; stackDeviceId = emsDevicesSetting.getParentId();
}
} }
} }
return stackDeviceId; return stackDeviceId;