演示调整

This commit is contained in:
tiger_zhou 2023-10-10 11:12:20 +08:00
parent a06d680579
commit 99a391a7cd

View File

@ -207,7 +207,7 @@ public class AlertMockService {
track.setLineId(dto.getLineId());
track.setTimestamp(System.currentTimeMillis() / 1000);
CommonInfo commonInfo = DeviceStatusDataOperate.findFieldVal(msg, "common", CommonInfo.class);
return this.alertInfoService.createAlert(AlertType.TRAIN_EB_ATP, AlertDeviceType.DEVICE_TYPE_TRAIN, commonInfo.getId(), track, "测试车组号", AlertDeviceType.DEVICE_TYPE_TRAIN, true);
return this.alertInfoService.createAlert(AlertType.TRAIN_EB_ATP, AlertDeviceType.DEVICE_TYPE_TRACK, commonInfo.getId(), track, "测试车组号", AlertDeviceType.DEVICE_TYPE_TRAIN, true);
}
default -> throw new IllegalStateException("Unexpected value: " + dto.getAlertType());