Browse Source

fix : 测试修改

master
ls 2 days ago
parent
commit
466469ef3e
  1. 9
      acs/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site2/StandardInspectSite2DeviceDriver.java

9
acs/hd/nladmin-system/src/main/java/org/nl/acs/device_driver/standard_inspect_site2/StandardInspectSite2DeviceDriver.java

@ -193,6 +193,10 @@ public class StandardInspectSite2DeviceDriver extends AbstractOpcDeviceDriver im
Instruction instruction = null; Instruction instruction = null;
List toInstructions; List toInstructions;
if (mode == 2){
requireSucess = false;
}
switch (mode) { switch (mode) {
case 1: case 1:
log.debug("设备运转模式:等待工作"); log.debug("设备运转模式:等待工作");
@ -204,14 +208,18 @@ public class StandardInspectSite2DeviceDriver extends AbstractOpcDeviceDriver im
message = "起点终点为空"; message = "起点终点为空";
break; break;
} }
if (!requireSucess) {
applyTask(); applyTask();
}
break; break;
//取消 //取消
case 4: case 4:
if (task == 0){ if (task == 0){
break; break;
} }
this.cancle_require(); this.cancle_require();
break; break;
} }
@ -271,6 +279,7 @@ public class StandardInspectSite2DeviceDriver extends AbstractOpcDeviceDriver im
WQLObject wo = WQLObject.getWQLObject("acs_task"); WQLObject wo = WQLObject.getWQLObject("acs_task");
JSONObject json = JSONObject.fromObject(dto); JSONObject json = JSONObject.fromObject(dto);
wo.insert(json); wo.insert(json);
requireSucess = true;
} }
} }

Loading…
Cancel
Save