【方向为空时处理】

This commit is contained in:
weizhihong 2022-06-29 17:45:05 +08:00
parent 2af2d43a3b
commit 70c4c99e6d

View File

@ -361,7 +361,11 @@ public class CtcStationRunPlanLog {
// 接发状态
runPlanItem.setStationDirection(stationDirection);
runPlanItem.setAccessName(stationDirection.getName());
runPlanItem.setRight(stationDirection.getRight());
if (stationDirection.getRight() == null) {
runPlanItem.setRight(false);
} else {
runPlanItem.setRight(stationDirection.getRight());
}
runPlanItem.setRunModel(stationDirection.getDefaultRunStatus());
runPlanItem.initAccessName();
adjacentStation = stationDirection.getRelativeStationDirection().getStation();