|
|
@ -19,6 +19,7 @@ import org.nl.acs.device_driver.standard_emptypallet_site.StandardEmptyPalletSit |
|
|
|
import org.nl.acs.device_driver.standard_inspect_site.StandardInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_manipulator_inspect_site.StandardManipulatorInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_ordinary_site.StandardOrdinarySiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.standard_special_inspect_site.StandardSpecialInspectSiteDeviceDriver; |
|
|
|
import org.nl.acs.device_driver.ykbk_special.YkbkSpecialDeviceDriver; |
|
|
|
import org.nl.acs.instruction.service.InstructionService; |
|
|
|
import org.nl.acs.instruction.service.dto.Instruction; |
|
|
@ -118,7 +119,8 @@ public class YkbkHandServiceImpl implements YkbkHandService { |
|
|
|
YkbkSpecialDeviceDriver ykbkSpecialDeviceDriver; |
|
|
|
//检测站点
|
|
|
|
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver; |
|
|
|
|
|
|
|
//专机站点
|
|
|
|
StandardSpecialInspectSiteDeviceDriver standardSpecialInspectSiteDeviceDriver; |
|
|
|
if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) { |
|
|
|
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
|
@ -207,6 +209,35 @@ public class YkbkHandServiceImpl implements YkbkHandService { |
|
|
|
jo.put("batch", standardInspectSiteDeviceDriver.getBatch()); |
|
|
|
jo.put("input_material", input_material); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
else if (device.getDeviceDriver() instanceof StandardSpecialInspectSiteDeviceDriver) { |
|
|
|
standardSpecialInspectSiteDeviceDriver = (StandardSpecialInspectSiteDeviceDriver) device.getDeviceDriver(); |
|
|
|
|
|
|
|
if (StrUtil.equals(device.getIslock(), "true")) { |
|
|
|
status = "3"; |
|
|
|
move = "有任务"; |
|
|
|
} else { |
|
|
|
if (standardSpecialInspectSiteDeviceDriver.getHasGoods() == 0) { |
|
|
|
status = "0"; |
|
|
|
move = "无货"; |
|
|
|
} else if (standardSpecialInspectSiteDeviceDriver.getHasGoods() == 1) { |
|
|
|
status = "1"; |
|
|
|
move = "有托盘"; |
|
|
|
} else if (standardSpecialInspectSiteDeviceDriver.getHasGoods() == 2) { |
|
|
|
status = "2"; |
|
|
|
move = "有托盘有货"; |
|
|
|
} |
|
|
|
} |
|
|
|
jo.put("material_type", standardSpecialInspectSiteDeviceDriver.getMaterial()); |
|
|
|
jo.put("status_name", move); |
|
|
|
jo.put("status", status); |
|
|
|
jo.put("device_id", devicejo.optString("device_id")); |
|
|
|
jo.put("device_code", devicejo.optString("device_code")); |
|
|
|
jo.put("device_name", devicejo.optString("device_name")); |
|
|
|
jo.put("allow_update", "1"); |
|
|
|
jo.put("input_material", input_material); |
|
|
|
|
|
|
|
} |
|
|
|
resultArr.add(jo); |
|
|
|
} |
|
|
|