满足信号时等待五秒,防止出现刚盘点完毕lms库存信息还未同步完毕的情况

This commit is contained in:
psh
2023-10-27 16:05:00 +08:00
parent 4b98cd1998
commit 2226caa4a2

View File

@@ -505,6 +505,12 @@ public class HfStationDeviceDriver extends AbstractOpcDeviceDriver implements De
if (status != 2) {
return false;
}
//满足信号时等待五秒防止出现刚盘点完毕lms库存信息还未同步完毕的情况
try {
Thread.sleep(5000L);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
logServer.deviceInfo("acs申请任务", this.getDevice_code(), "开始申请压机叫料任务!");
this.instruction_call_material_time = date;
JSONObject json = new JSONObject();