|
|
@ -199,7 +199,13 @@ public class XianGongAgvServiceImpl implements XianGongAgvService { |
|
|
|
if (driver.getAction() == XgAgvEnum.GS_ACTION_YES.getCode()) { |
|
|
|
// 判断是否清楚车号
|
|
|
|
if (device.getExtraValue().get("is_clean").toString().equals("1")) { |
|
|
|
// 清除第当前设备车号(第二次)
|
|
|
|
driver.setCar_no(""); |
|
|
|
// 清除第一次光栅车号
|
|
|
|
String device_code2 = device.getDevice_code().substring(0, 4) + "A1"; |
|
|
|
Device device2 = deviceAppService.findDeviceByCode(device_code2); |
|
|
|
LampThreecolorDeviceDriver driver2 = (LampThreecolorDeviceDriver) device2.getDeviceDriver(); |
|
|
|
driver2.setCar_no(""); |
|
|
|
} |
|
|
|
result.put("code", HttpStatus.HTTP_OK); |
|
|
|
result.put("message", "ok"); |
|
|
|