This commit is contained in:
loujf
2022-09-12 13:31:56 +08:00
parent 598e0b84cb
commit efa22b41dd

View File

@@ -120,11 +120,11 @@ public class SendEmptyVehicleTask extends AbstractAcsTask {
//假如起点是KTPHCW3就需要送到堆叠位
if (StrUtil.equals(start_point_code, "KTPDDW3")) {
WQLObject point_table = WQLObject.getWQLObject("sch_base_point");
JSONArray pointArr = point_table.query("area_type='" + AreaEnum.KTTHCQ.getCode() + "'").getResultJSONArray(0);
JSONArray pointarr = WQL.getWO("ACSTOMES_001").addParam("area_type", AreaEnum.KTTHCQ.getCode()).addParam("flag", "4").process().getResultJSONArray(0);
//更新点位
PointUpdateUtil.updatePoint(pointArr);
PointUpdateUtil.updatePoint(pointarr);
//查询有没有空的点位
JSONObject pointObj = point_table.query("area_type='04' and point_status='00'").uniqueResult(0);
JSONObject pointObj = point_table.query("area_type='" + AreaEnum.KTTHCQ.getCode() + "' and point_status='00'").uniqueResult(0);
if (ObjectUtil.isEmpty(pointObj)) {
throw new BadRequestException("未找到合适的点位");
}