修改小bug
This commit is contained in:
parent
542c7da98e
commit
d819e8a190
@ -41,7 +41,7 @@ public class OnboardPisStatus extends Watchable {
|
||||
OnboardPisStatus changeStatus = new OnboardPisStatus();
|
||||
changeStatus.setGroupNumber(groupNumber);
|
||||
|
||||
if (Objects.equals(nextStationName, pis.getNextStationName())) {
|
||||
if (!Objects.equals(nextStationName, pis.getNextStationName())) {
|
||||
nextStationName = pis.getNextStationName();
|
||||
change = true;
|
||||
changeStatus.setNextStationName(nextStationName);
|
||||
|
@ -57,7 +57,7 @@ public class PisLogicLoop {
|
||||
if (StringUtils.hasText(nextStandTrackCode)) {
|
||||
Section standTrack = repository.getByCode(nextStandTrackCode, Section.class);
|
||||
List<Stand> standList = standTrack.getStandList();
|
||||
if (!CollectionUtils.isEmpty(standList)) {
|
||||
if (!CollectionUtils.isEmpty(standList) && !standList.get(0).isSmall()) {
|
||||
nextStation = standList.get(0).getStation();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user