Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
joylink_zhangsai 2021-02-03 18:35:32 +08:00
commit cc9aba942c

View File

@ -40,6 +40,9 @@ public class AtsApiServiceImpl implements AtsApiService {
TrainInfo train = repository.findSupervisedTrainByGroup(stopMessage.getGroupNumber());
Section section = stopMessage.getSection();
Station station = section.getStation();
if (train == null || station == null) {
return;
}
if (train.isParking() && Objects.equals(train.getStationCode(), station.getCode())) {
// 已经处理过
return;