【增加断相保护器初始化】

This commit is contained in:
weizhihong 2023-09-27 14:36:41 +08:00
parent 8e9d7ee28a
commit fbef2ef9e5

View File

@ -164,6 +164,19 @@ func initRelayCabinetUid(graphicData *graphicData.RelayCabinetGraphicStorage) *r
Uid: GenerateElementUid(city, lineId, []string{station}, code),
}
}
for _, r := range graphicData.PhaseFailureProtectors {
p := refMap[r.Common.Id]
code := r.Code
if p != nil {
code = p.deviceCode + "_" + p.typeCode + "_" + r.Code
}
rus.RelayIds[r.Common.Id] = &elementIdStructure{
CommonId: r.Common.Id,
Code: r.Code,
Uid: GenerateElementUid(city, lineId, []string{station}, code),
}
}
return rus
}