From 058f14f7344058fda05c927e2f1cec1982483cd7 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Fri, 10 Jun 2022 14:56:04 +0800 Subject: [PATCH] 1 --- .../com/hisense/monitormanage/controller/EventController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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");