fix : 测试修改

This commit is contained in:
ls
2025-04-23 14:27:04 +08:00
parent 6e5ebeae2e
commit 466469ef3e

View File

@@ -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;
} }
applyTask(); if (!requireSucess) {
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;
} }
} }