【增加断相保护器初始化】
This commit is contained in:
parent
8e9d7ee28a
commit
fbef2ef9e5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user