张江玮 1 year ago
parent
commit
445510b81a
  1. 1
      acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_inspect_site/StandardInspectSiteDeviceDriver.java
  2. 5
      acs/nladmin-system/src/main/java/org/nl/acs/device_driver/fold_disc_site/FoldDiscSiteDeviceDriver.java

1
acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_inspect_site/StandardInspectSiteDeviceDriver.java

@ -133,7 +133,6 @@ public class StandardInspectSiteDeviceDriver extends AbstractOpcDeviceDriver imp
@Override @Override
public void execute() { public void execute() {
String message = null;
try { try {
devicecode = this.getDeviceCode(); devicecode = this.getDeviceCode();
mode = this.itemProtocol.getMode(); mode = this.itemProtocol.getMode();

5
acs/nladmin-system/src/main/java/org/nl/acs/device_driver/fold_disc_site/FoldDiscSiteDeviceDriver.java

@ -152,10 +152,15 @@ public class FoldDiscSiteDeviceDriver extends AbstractOpcDeviceDriver implements
break; break;
case 2: case 2:
if (!this.requireSucess) { if (!this.requireSucess) {
int max_emptypalletnum = Integer.parseInt(this.getDevice().getExtraValue().get("max_emptypalletnum").toString());
if (number == 0 || number == max_emptypalletnum) {
JSONObject param = new JSONObject(); JSONObject param = new JSONObject();
param.put("device_code", this.device_code); param.put("device_code", this.device_code);
param.put("is_have", this.number == 0 ? 0 : 1); param.put("is_have", this.number == 0 ? 0 : 1);
this.shipDeviceUpdate(param); this.shipDeviceUpdate(param);
} else {
this.requireSucess = true;
}
} }
} }
} }

Loading…
Cancel
Save