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