From 11c95d111ba84902aa8a00ed6b73557ed81ef51d Mon Sep 17 00:00:00 2001 From: PigBaoBei <2739175034@qq.com> Date: Wed, 6 Mar 2024 23:08:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E5=AD=98=E5=93=81=E6=8B=86=E5=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DistributionStockListServiceImpl.java | 21 ++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java index e83bccd7e..623312356 100644 --- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java +++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java @@ -235,7 +235,7 @@ public class DistributionStockListServiceImpl extends BaseServiceImplquery().lambda() - .eq(DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) + .eq(ObjectUtil.isNotEmpty(distributionStockListDTO.getMaterialId()),DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) .eq(DistributionStockListEntity::getPid, distributionStockListDTO.getId()) .eq(DistributionStockListEntity::getMarketId, distributionStockListDTO.getMarketId()) .eq(DistributionStockListEntity::getWarehouseId, myCurrentWarehouse.getId()) @@ -246,7 +246,7 @@ public class DistributionStockListServiceImpl extends BaseServiceImplquery().lambda() .eq(DistributionStockListEntity::getId, distributionStockListDTO.getId()) .eq(DistributionStockListEntity::getMarketId, distributionStockListDTO.getMarketId()) - .eq(DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) +// .eq(DistributionStockListEntity::getMaterialId, distributionStockListDTO.getMaterialId()) .eq(DistributionStockListEntity::getWarehouseId, myCurrentWarehouse.getId()) .eq(ObjectUtil.isNotEmpty(distributionStockListDTO.getStoreId()), DistributionStockListEntity::getStoreId, distributionStockListDTO.getStoreId()) ); @@ -254,7 +254,7 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl