diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
index cb71fa228..2ffd15749 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/mapper/DistributionParcelListMapper.xml
@@ -929,6 +929,12 @@
and ldpl.warehouse_id = #{paramMap.warehouseId}
+
+ and ldpl.warehouse_id IN
+
+ #{wItem}
+
+
and ldpl.tenant_id = #{paramMap.tenantId}
diff --git a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java
index 7501fa694..f7030cece 100644
--- a/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java
+++ b/blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionParcelListServiceImpl.java
@@ -677,7 +677,13 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl warehouseList = warehouseClient.getMyWarehouseList();
+ if (!warehouseList.isEmpty()) {
+ List warehouseIds = warehouseList.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList());
+ paramMap.put("warehouseIds", warehouseIds);
+ }
+ }else {
+ paramMap.put("warehouseId", myCurrentWarehouse.getId());
}
// 用户勾选数据的ids
Object ids = paramMap.get("ids");
@@ -687,7 +693,6 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl list = baseMapper.exportDistributionParcelList(paramMap, idArr);