Browse Source

rev:急停修改

master
刘先源 1 month ago
parent
commit
05e59e9a8f
  1. 4
      acs2/nladmin-system/src/main/java/org/nl/acs/device_driver/lamp_three_color/LampThreecolorDeviceDriver.java

4
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);

Loading…
Cancel
Save