【修改link区段端点设备类型】

This commit is contained in:
weizhihong 2023-08-09 09:32:27 +08:00
parent 72fc04043a
commit 253d6f9889

View File

@ -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的起始点和包装数据结构方便查找以道岔的各分支的连接点为起点