修改小bug

This commit is contained in:
joylink_zhangsai 2022-09-20 17:25:23 +08:00
parent 542c7da98e
commit d819e8a190
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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();
}
}