rev 自动门 手持
This commit is contained in:
@@ -122,10 +122,10 @@ public class StandardAutodoorDeviceDriver extends AbstractOpcDeviceDriver implem
|
|||||||
public synchronized String getStatus() {
|
public synchronized String getStatus() {
|
||||||
JSONObject jo = new JSONObject();
|
JSONObject jo = new JSONObject();
|
||||||
|
|
||||||
if (action == 1 && mode == 2) {
|
if (action == 1) {
|
||||||
jo.put("name", this.getDevice().getDevice_code());
|
jo.put("name", this.getDevice().getDevice_code());
|
||||||
jo.put("status", "OPEN");
|
jo.put("status", "OPEN");
|
||||||
} else if (action == 2 && mode == 2) {
|
} else if (action == 2) {
|
||||||
jo.put("name", this.getDevice().getDevice_code());
|
jo.put("name", this.getDevice().getDevice_code());
|
||||||
jo.put("status", "CLOSE");
|
jo.put("status", "CLOSE");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -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_inspect_site.StandardInspectSiteDeviceDriver;
|
||||||
import org.nl.acs.device_driver.standard_manipulator_inspect_site.StandardManipulatorInspectSiteDeviceDriver;
|
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_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.device_driver.ykbk_special.YkbkSpecialDeviceDriver;
|
||||||
import org.nl.acs.instruction.service.InstructionService;
|
import org.nl.acs.instruction.service.InstructionService;
|
||||||
import org.nl.acs.instruction.service.dto.Instruction;
|
import org.nl.acs.instruction.service.dto.Instruction;
|
||||||
@@ -118,7 +119,8 @@ public class YkbkHandServiceImpl implements YkbkHandService {
|
|||||||
YkbkSpecialDeviceDriver ykbkSpecialDeviceDriver;
|
YkbkSpecialDeviceDriver ykbkSpecialDeviceDriver;
|
||||||
//检测站点
|
//检测站点
|
||||||
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver;
|
StandardInspectSiteDeviceDriver standardInspectSiteDeviceDriver;
|
||||||
|
//专机站点
|
||||||
|
StandardSpecialInspectSiteDeviceDriver standardSpecialInspectSiteDeviceDriver;
|
||||||
if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
|
if (device.getDeviceDriver() instanceof StandardOrdinarySiteDeviceDriver) {
|
||||||
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver();
|
standardOrdinarySiteDeviceDriver = (StandardOrdinarySiteDeviceDriver) device.getDeviceDriver();
|
||||||
|
|
||||||
@@ -207,6 +209,35 @@ public class YkbkHandServiceImpl implements YkbkHandService {
|
|||||||
jo.put("batch", standardInspectSiteDeviceDriver.getBatch());
|
jo.put("batch", standardInspectSiteDeviceDriver.getBatch());
|
||||||
jo.put("input_material", input_material);
|
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);
|
resultArr.add(jo);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user