|
@ -359,6 +359,12 @@ public class PdaServiceImpl implements PdaService { |
|
|
throw new BadRequestException("暂存区不能生成入库任务"); |
|
|
throw new BadRequestException("暂存区不能生成入库任务"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
String regionId = point.getString("region_id"); |
|
|
|
|
|
if (StrUtil.equals(regionId, RegionEnum.JJ.getId()) |
|
|
|
|
|
&& point.getString("point_code").startsWith("JJC")) { |
|
|
|
|
|
throw new BadRequestException("交接区出库位不能生成入库任务"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
JSONObject vehicle = WQLObject |
|
|
JSONObject vehicle = WQLObject |
|
|
.getWQLObject("md_pb_vehicle") |
|
|
.getWQLObject("md_pb_vehicle") |
|
|
.query("vehicle_code = '" + point.getString("vehicle_code") + "'") |
|
|
.query("vehicle_code = '" + point.getString("vehicle_code") + "'") |
|
@ -369,7 +375,6 @@ public class PdaServiceImpl implements PdaService { |
|
|
sendEmptyVehicleTask.createTask(param); |
|
|
sendEmptyVehicleTask.createTask(param); |
|
|
} |
|
|
} |
|
|
if (StrUtil.equals(vehicle.getString("vehicle_status"), VehicleStatus.HAS_MATERIAL.getCode())) { |
|
|
if (StrUtil.equals(vehicle.getString("vehicle_status"), VehicleStatus.HAS_MATERIAL.getCode())) { |
|
|
String regionId = point.getString("region_id"); |
|
|
|
|
|
if (StrUtil.equals(regionId, RegionEnum.JL.getId())) { |
|
|
if (StrUtil.equals(regionId, RegionEnum.JL.getId())) { |
|
|
sendFullVehicleTask.createTask(param); |
|
|
sendFullVehicleTask.createTask(param); |
|
|
} |
|
|
} |
|
|