|
|
|
@ -677,7 +677,13 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut
|
|
|
|
|
// 获取当前登录的仓库信息
|
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = warehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
if (ObjectUtils.isNull(myCurrentWarehouse)) { |
|
|
|
|
throw new ServiceException("没有仓库信息!"); |
|
|
|
|
List<BasicdataWarehouseEntity> warehouseList = warehouseClient.getMyWarehouseList(); |
|
|
|
|
if (!warehouseList.isEmpty()) { |
|
|
|
|
List<Long> 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<Distribut
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
String tenantId = AuthUtil.getTenantId(); |
|
|
|
|
paramMap.put("warehouseId", myCurrentWarehouse.getId()); |
|
|
|
|
paramMap.put("tenantId", tenantId); |
|
|
|
|
|
|
|
|
|
List<DistributionParcelListExcel> list = baseMapper.exportDistributionParcelList(paramMap, idArr); |
|
|
|
|