rev: 去除任务数量校验

This commit is contained in:
2025-04-03 09:47:06 +08:00
parent a1a4ad1bae
commit c3245cb69c

View File

@@ -163,23 +163,23 @@ public class AutoCallEmptyVehicle {
// 下发ACS任务呼叫纸管
this.callPaperTube(plan_rows, product_area);
}
/* ******************* 校验需要呼叫的载具数 ******************* */
/* ******************* 校验需要呼叫的载具数(待优化) ******************* */
// 断点:"A1".equals(product_area) && "1".equals(point_location)
//减去对应已经在出库的空载具任务
JSONArray out_task = WQL.getWO("QAUTO_QUERY").addParam("flag", "2").addParam("point_location", point_location).addParam("product_area", product_area).process().getResultJSONArray(0);
donw_num -= out_task.size();
// JSONArray out_task = WQL.getWO("QAUTO_QUERY").addParam("flag", "2").addParam("point_location", point_location).addParam("product_area", product_area).process().getResultJSONArray(0);
// donw_num -= out_task.size();
//减去出口对应的载具
JSONObject out_jo = WQL.getWO("QAUTO_QUERY").addParam("flag", "3").addParam("point_location", point_location).addParam("product_area", product_area).process().uniqueResult(0);
if (ObjectUtil.isNotEmpty(out_jo)) {
donw_num--;
}
// JSONObject out_jo = WQL.getWO("QAUTO_QUERY").addParam("flag", "3").addParam("point_location", point_location).addParam("product_area", product_area).process().uniqueResult(0);
// if (ObjectUtil.isNotEmpty(out_jo)) {
// donw_num--;
// }
//减去入库口对应的载具
JSONObject in_jo = WQL.getWO("QAUTO_QUERY").addParam("flag", "4").addParam("point_location", point_location).addParam("product_area", product_area).process().uniqueResult(0);
if (ObjectUtil.isNotEmpty(in_jo)) {
donw_num--;
}
// JSONObject in_jo = WQL.getWO("QAUTO_QUERY").addParam("flag", "4").addParam("point_location", point_location).addParam("product_area", product_area).process().uniqueResult(0);
// if (ObjectUtil.isNotEmpty(in_jo)) {
// donw_num--;
// }
//减去入库任务数量
// JSONArray in_task = WQL.getWO("QAUTO_QUERY").addParam("flag", "5").addParam("point_location", point_location).addParam("product_area", product_area).process().getResultJSONArray(0);