merge调整
This commit is contained in:
parent
92e5491927
commit
c27ef7c675
|
@ -538,7 +538,7 @@ func initIBPUid(data *graphicData.IBPGraphicStorage) *IBPUidStructure {
|
|||
// 构建仿真内所有地图UID映射信号布置图ID,这里为了解决多地图时根据UID反向寻找,避免多次循环地图,直接获取平面布置图元素
|
||||
func buildRepositoryAllUidsMap(mapIds []int32, repo *repository.Repository) map[string]*elementIdStructure {
|
||||
mapLen := len(repo.CheckPointList()) + len(repo.PhysicalSectionList()) + len(repo.SignalList()) +
|
||||
len(repo.TurnoutList()) + len(repo.TransponderList()) + len(repo.SlopeList()) +
|
||||
len(repo.TurnoutList()) + len(repo.ResponderList()) + len(repo.SlopeList()) +
|
||||
len(repo.SectionalCurvatureList())
|
||||
allUidMap := make(map[string]*elementIdStructure, mapLen)
|
||||
saveToAllUidMap := func(es map[uint32]*elementIdStructure) {
|
||||
|
|
|
@ -2,10 +2,11 @@ package memory
|
|||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"joylink.club/bj-rtsts-server/dto"
|
||||
"joylink.club/bj-rtsts-server/sys_error"
|
||||
"joylink.club/rtsssimulation/component"
|
||||
"joylink.club/rtsssimulation/component/component_proto"
|
||||
"joylink.club/rtsssimulation/component/component_data"
|
||||
"joylink.club/rtsssimulation/entity"
|
||||
)
|
||||
|
||||
|
@ -22,7 +23,7 @@ func TransponderMove(simulation *VerifySimulation, req *dto.TransponderMoveReqDt
|
|||
if !ok {
|
||||
panic(sys_error.New(fmt.Sprintf("没有[id:%s]的应答器", req.TransponderId)))
|
||||
}
|
||||
component.LinkPositionType.SetValue(te, component_proto.LinkPosition{
|
||||
component.LinkPositionType.SetValue(te, component_data.LinkPosition{
|
||||
LinkId: req.LinkId,
|
||||
Offset: req.Offset,
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue