add:增加线程等待

This commit is contained in:
zhangzq
2026-03-04 15:42:40 +08:00
parent e9fb69cb00
commit c0f763e153

View File

@@ -140,6 +140,7 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
@Override
public void execute() {
try {
Thread.sleep(2000);
this.devicecode = this.getDevice().getDevice_code();
if (this.reqTakeRequireSuccess && ObjectUtil.isNotEmpty(this.reqTakeInstCode)) {
Instruction instruction = instructionService.findByCodeFromCache(this.reqTakeInstCode);
@@ -299,9 +300,9 @@ public class StandardOrdinarySiteDeviceDriver extends AbstractDeviceDriver imple
}
}
}
} catch (IOException e) {
e.printStackTrace();
log.info("设备执行失败"+e.getMessage());
} catch (Exception ex) {
ex.printStackTrace();
log.info("设备执行失败"+ex.getMessage());
}
}