lisai17@sina.com 2021-02-02 14:25:55 +08:00
parent 9c8ca0d912
commit 62118f2240
2 changed files with 3 additions and 11 deletions

View File

@ -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) {
// 出场时,称完重量后,就等待用户结算,然后发送抬杆指令,这里不自动抬杆

View File

@ -58,7 +58,7 @@ public class CheckExceptionDataJob implements Job {
content += "浠水砂石系统有 " + sync + " 条数据下发失败。";
}
} else {
content += "没有找到在线砂站信息。";
content += "没有找到" + Config.configprop.get("print.vendor") + "在线砂站信息。";
log.error("没有找到在线砂站信息。");
}