物理区段-集中站
This commit is contained in:
parent
f2d6737b28
commit
a83a28832f
@ -774,11 +774,16 @@ func fillProtoRepository(repo *proto.Repository, storage *graphicData.RtssGraphi
|
|||||||
if data.SectionType == graphicData.Section_TurnoutPhysical {
|
if data.SectionType == graphicData.Section_TurnoutPhysical {
|
||||||
turnoutIds = findTurnoutIds(axleCountingMap, data.AxleCountings)
|
turnoutIds = findTurnoutIds(axleCountingMap, data.AxleCountings)
|
||||||
}
|
}
|
||||||
|
centralizedStation := ""
|
||||||
|
if len(data.CentralizedStations) > 0 {
|
||||||
|
centralizedStation = data.CentralizedStations[0]
|
||||||
|
}
|
||||||
physicalSection := &proto.PhysicalSection{
|
physicalSection := &proto.PhysicalSection{
|
||||||
Id: data.Common.Id,
|
Id: data.Common.Id,
|
||||||
ADevicePort: convertDevicePort(data.PaRef),
|
ADevicePort: convertDevicePort(data.PaRef),
|
||||||
BDevicePort: convertDevicePort(data.PbRef),
|
BDevicePort: convertDevicePort(data.PbRef),
|
||||||
TurnoutIds: turnoutIds,
|
TurnoutIds: turnoutIds,
|
||||||
|
CentralizedStation: centralizedStation,
|
||||||
}
|
}
|
||||||
repo.PhysicalSections = append(repo.PhysicalSections, converSectionUid(physicalSection, uidsMap))
|
repo.PhysicalSections = append(repo.PhysicalSections, converSectionUid(physicalSection, uidsMap))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user