From 05e59e9a8fe968199590eef2c807733fb0c8445f Mon Sep 17 00:00:00 2001 From: liuxy Date: Tue, 17 Dec 2024 11:26:17 +0800 Subject: [PATCH] =?UTF-8?q?rev=EF=BC=9A=E6=80=A5=E5=81=9C=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lamp_three_color/LampThreecolorDeviceDriver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java b/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java index 888aff9..896ed56 100644 --- a/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java +++ b/acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java @@ -1,5 +1,6 @@ package org.nl.acs.device_driver.lamp_three_color; +import cn.hutool.core.util.ObjectUtil; import com.alibaba.fastjson.JSONObject; import lombok.Getter; import lombok.RequiredArgsConstructor; @@ -142,9 +143,8 @@ public class LampThreecolorDeviceDriver extends AbstractOpcDeviceDriver implemen } } - private void executeLogicBefore() { - if (error == 1) { + if (error == 1 && ObjectUtil.isNotEmpty(car_no)) { String[] carArr = {car_no}; JSONObject json = new JSONObject(); json.put("vehicles", carArr);