dev
parent
9c8ca0d912
commit
62118f2240
|
|
@ -259,16 +259,8 @@ public class OutController extends Controller implements Runnable {
|
|||
}
|
||||
|
||||
log.debug("%s 【%s】称重后,上传重量【%s】", getWhich(), pair.license, weight);
|
||||
tryCount = 0;
|
||||
Boolean weightPosted = null;
|
||||
while (tryCount < 10) {
|
||||
tryCount++;
|
||||
weightPosted = postWeight(CliCacheData.SUP.getId(), pair.license, weight, getWhich());
|
||||
if (weightPosted != null && weightPosted) {
|
||||
break;
|
||||
}
|
||||
Thread.sleep(500);
|
||||
}
|
||||
// 只上传一次,若不成功,就需要手动称重了
|
||||
Boolean weightPosted = postWeight(CliCacheData.SUP.getId(), pair.license, weight, getWhich());
|
||||
|
||||
if (weightPosted != null && weightPosted) {
|
||||
// 出场时,称完重量后,就等待用户结算,然后发送抬杆指令,这里不自动抬杆
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@ public class CheckExceptionDataJob implements Job {
|
|||
content += "浠水砂石系统有 " + sync + " 条数据下发失败。";
|
||||
}
|
||||
} else {
|
||||
content += "没有找到在线砂站信息。";
|
||||
content += "没有找到" + Config.configprop.get("print.vendor") + "在线砂站信息。";
|
||||
log.error("没有找到在线砂站信息。");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue