From 855ca8b9eae29f68e4737cc474c9e7b0165c713d Mon Sep 17 00:00:00 2001 From: "0.0" <1092404103.qq.com> Date: Fri, 8 Sep 2023 09:34:21 +0800 Subject: [PATCH 1/4] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/DistributionDeliveryListServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java index 872e66124..2c08632c7 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionDeliveryListServiceImpl.java @@ -1242,7 +1242,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionLoadscanEntities = baseMapper.selectdeliverywork(distrilbutionloadingscanDTO.getBarcode(), distrilbutionloadingscanDTO.getDeliveryId()); - if (distributionLoadscanEntities.isEmpty()) { + if ( null == distributionLoadscanEntities || distributionLoadscanEntities.isEmpty() ) { return R.fail(3001, "窜货"); } // 串货后 下面的代码执行的意义不存在 @@ -1256,7 +1256,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionLoadscanEntities = baseMapper.selectdeliverypallet(distrilbutionloadingscanDTO.getBarcode(), distrilbutionloadingscanDTO.getDeliveryId()); - if (distributionLoadscanEntities.isEmpty()) { + if (null == distributionLoadscanEntities || distributionLoadscanEntities.isEmpty()) { return R.fail(3001, "窜货"); } for (DistributionLoadscanEntity distributionLoadscanEntity : distributionLoadscanEntities) { @@ -1273,7 +1273,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl distributionLoadscanEntities = baseMapper.selectOrderpallet(distrilbutionloadingscanDTO.getBarcode(), distrilbutionloadingscanDTO.getDeliveryId()); - if (distributionLoadscanEntities.isEmpty()) { + if (null == distributionLoadscanEntities || distributionLoadscanEntities.isEmpty()) { return R.fail(3001, "窜货"); } for (DistributionLoadscanEntity distributionLoadscanEntity : distributionLoadscanEntities) { @@ -1544,7 +1544,7 @@ public class DistributionDeliveryListServiceImpl extends BaseServiceImpl Date: Fri, 8 Sep 2023 11:15:06 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=87=AA=E6=8F=90?= =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=93=81=E5=A4=87=E8=B4=A7=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vo/DistributionStockupVO.java | 1 + .../DistributionStockupAppController.java | 11 ++- .../DistributionDeliveryDetailsMapper.xml | 4 +- .../mapper/DistributionStockListMapper.xml | 3 +- .../mapper/DistributionStockupMapper.java | 2 + .../mapper/DistributionStockupMapper.xml | 43 ++++++++--- .../impl/DistributionAsyncServiceImpl.java | 3 + .../impl/DistributionStockupServiceImpl.java | 17 ++-- .../DistrilbutionBillLadingServiceImpl.java | 77 +++++++++++++++++-- 9 files changed, 136 insertions(+), 25 deletions(-) diff --git a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java index b0f219018..6d5dae340 100644 --- a/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java +++ b/blade-service-api/logpm-distribution-api/src/main/java/com/logpm/distribution/vo/DistributionStockupVO.java @@ -34,6 +34,7 @@ public class DistributionStockupVO extends DistributionStockupEntity { private static final long serialVersionUID = 1L; private String headline; + private String cargoUnit; //数量 private String groupName; private String warehouseName; //仓库名称 diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java index 17ae673dc..f6ef6cc0a 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/appcontroller/DistributionStockupAppController.java @@ -569,8 +569,17 @@ public class DistributionStockupAppController extends BladeController { //重复扫码 String audioValue7 = DictBizCache.getValue(DictBizConstant.PDA_AUDIO, "7"); return Resp.scanFail("包条码不存在!",audioValue7); - + case 8: + //重复扫码 + String audioValue8 = DictBizCache.getValue(DictBizConstant.PDA_AUDIO, "8"); + return Resp.scanFail("条码已使用!",audioValue8); + case 9: + //重复扫码 + String audioValue9 = DictBizCache.getValue(DictBizConstant.PDA_AUDIO, "9"); + return Resp.scanFail("没有待绑定的库存品信息!",audioValue9); } + + } log.warn("###################stockupScan: 未知的扫码类型 scanType={}",scanType); return R.fail("未知的扫码类型"); diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml index f5979c028..7b94f665e 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionDeliveryDetailsMapper.xml @@ -60,10 +60,10 @@ select s.coding packageCode, - s.goods_name name + s.goods_name name, + ldsl. from logpm_distribution_reservation ldr left join logpm_distribution_reservation_stocklist ldrs on ldrs.reservation_id = ldr.id and ldrs.is_deleted = 0 and ldrs.stock_list_status in (1,3) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.java index ba42881c9..0246bba90 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.java @@ -168,4 +168,6 @@ public interface DistributionStockupMapper extends BaseMapper pageOweList(IPage page,@Param("param")DistributionStockupEntity distributionStockupEntity); + + IPage getInventoryOwnSelf(IPage page,@Param("id") Long id); } diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml index cdc64c54f..5b39d309f 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionStockupMapper.xml @@ -83,6 +83,32 @@ GROUP BY lds.id +