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