From 84166aa5709837d01bd4fa5ce94fcddfb1f385e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=B1=9F=E7=8E=AE?= Date: Mon, 14 Nov 2022 19:34:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E5=88=9B=E5=BB=BA=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/org/nl/wms/pda/service/impl/PdaServiceImpl.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java index c4e3c8d..5559965 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/pda/service/impl/PdaServiceImpl.java @@ -359,6 +359,12 @@ public class PdaServiceImpl implements PdaService { 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 .getWQLObject("md_pb_vehicle") .query("vehicle_code = '" + point.getString("vehicle_code") + "'") @@ -369,7 +375,6 @@ public class PdaServiceImpl implements PdaService { sendEmptyVehicleTask.createTask(param); } if (StrUtil.equals(vehicle.getString("vehicle_status"), VehicleStatus.HAS_MATERIAL.getCode())) { - String regionId = point.getString("region_id"); if (StrUtil.equals(regionId, RegionEnum.JL.getId())) { sendFullVehicleTask.createTask(param); }