更新
This commit is contained in:
@@ -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("未找到合适的点位");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user