|
|
@ -960,9 +960,21 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
} |
|
|
|
if (addressdevice.getDeviceDriver() instanceof StandardInspectSiteSmartDeviceDriver) { |
|
|
|
standardInspectSiteSmartDeviceDriver = (StandardInspectSiteSmartDeviceDriver) addressdevice.getDeviceDriver(); |
|
|
|
String apply_task = addressdevice.getExtraValue().get("apply_task").toString(); |
|
|
|
//取货完成
|
|
|
|
if ("Load".equals(action)) { |
|
|
|
if (standardInspectSiteSmartDeviceDriver.getMode() != 0 && standardInspectSiteSmartDeviceDriver.getMove() == 0) { |
|
|
|
//如果开启呼叫按钮,那么就需要判断进出动作信号
|
|
|
|
if (ObjectUtil.isNotEmpty(apply_task) && apply_task.equals("true")) { |
|
|
|
if (standardInspectSiteSmartDeviceDriver.getMode() != 0 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getMove() == 0 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getAction() == 3 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getIo_action() == 3) { |
|
|
|
inst.setExecute_device_code(processingVehicle); |
|
|
|
inst.setExecute_status("2"); |
|
|
|
standardInspectSiteSmartDeviceDriver.writing(2); |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
} else if (standardInspectSiteSmartDeviceDriver.getMode() != 0 && standardInspectSiteSmartDeviceDriver.getMove() == 0) { |
|
|
|
inst.setExecute_device_code(processingVehicle); |
|
|
|
inst.setExecute_status("2"); |
|
|
|
standardInspectSiteSmartDeviceDriver.writing(2); |
|
|
@ -970,7 +982,18 @@ public class AgvServiceImpl implements AgvService { |
|
|
|
} |
|
|
|
//放货完成
|
|
|
|
} else if ("Unload".equals(action)) { |
|
|
|
if (standardInspectSiteSmartDeviceDriver.getMode() != 0 && standardInspectSiteSmartDeviceDriver.getMove() > 0) { |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(apply_task) && apply_task.equals("true")) { |
|
|
|
if (standardInspectSiteSmartDeviceDriver.getMode() != 0 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getMove() > 0 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getAction() == 3 |
|
|
|
&& standardInspectSiteSmartDeviceDriver.getIo_action() == 3) { |
|
|
|
inst.setExecute_device_code(address); |
|
|
|
inst.setExecute_status("4"); |
|
|
|
standardInspectSiteSmartDeviceDriver.writing(3); |
|
|
|
is_feedback = true; |
|
|
|
} |
|
|
|
} else if (standardInspectSiteSmartDeviceDriver.getMode() != 0 && standardInspectSiteSmartDeviceDriver.getMove() > 0) { |
|
|
|
inst.setExecute_device_code(address); |
|
|
|
inst.setExecute_status("4"); |
|
|
|
standardInspectSiteSmartDeviceDriver.writing(3); |
|
|
|