修改大铁调车进路生成逻辑

This commit is contained in:
joylink_zhangsai 2022-08-24 13:57:14 +08:00
parent 0e4f0b7b83
commit b4470f92c9

View File

@ -405,11 +405,11 @@ public class DraftMapRouteServiceImpl implements DraftMapRouteService {
}
} else { //反向信号机
if (destination.equals(last.getSignalOf(!right))) {
sections.remove(i);
// sections.remove(i);
break;
}
}
sections.remove(i);
sections.remove(i); //最后一个区段上没有与终端信号机相同的信号机
}
//添加进路
Route route = new Route(routeCodeGenerator.next(), "D_" + signal.getShowName() + "-" + destination.getShowName());