diff --git a/src/main/java/com/hisense/monitormanage/controller/EventController.java b/src/main/java/com/hisense/monitormanage/controller/EventController.java index 5df5c35..de40560 100644 --- a/src/main/java/com/hisense/monitormanage/controller/EventController.java +++ b/src/main/java/com/hisense/monitormanage/controller/EventController.java @@ -81,7 +81,7 @@ public class EventController { event.setVehicle(largeVehicle.getString("valueDescription")); } JSONObject trainingVehicle = attributes.getJSONObject("training_vehicle"); - if (trainingVehicle == null) { + if (trainingVehicle != null) { event.setVehicle(trainingVehicle.getString("valueDescription")); } JSONObject smallVehicle = attributes.getJSONObject("small_vehicle");