【修改link区段端点设备类型】
This commit is contained in:
parent
72fc04043a
commit
253d6f9889
@ -257,10 +257,11 @@ func getGraphicSectionPointRef(section *buildCalcSectionStruct, b bool, defaultR
|
||||
return defaultRelateRef
|
||||
}
|
||||
if apoint.KilometerSystem.Kilometer < bpoint.KilometerSystem.Kilometer && b {
|
||||
return &graphicData.RelatedRef{DeviceType: graphicData.RelatedRef_Section, Id: section.Data.Common.Id, DevicePort: graphicData.RelatedRef_A}
|
||||
return &graphicData.RelatedRef{DeviceType: graphicData.RelatedRef_AxleCounting, Id: apoint.Common.Id}
|
||||
} else {
|
||||
return &graphicData.RelatedRef{DeviceType: graphicData.RelatedRef_Section, Id: section.Data.Common.Id, DevicePort: graphicData.RelatedRef_B}
|
||||
return &graphicData.RelatedRef{DeviceType: graphicData.RelatedRef_AxleCounting, Id: bpoint.Common.Id}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// 获取link的起始点和包装数据结构方便查找,以道岔的各分支的连接点为起点
|
||||
|
Loading…
Reference in New Issue
Block a user