|
|
|
@ -2837,10 +2837,11 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
List<Long> warehouseIdList = new ArrayList<>(); |
|
|
|
|
if (Objects.isNull(myCurrentWarehouse)){ |
|
|
|
|
//查询当前人的仓库列表
|
|
|
|
|
List<BasicdataWarehouseEntity> warehouseList = warehouseClient.getMyWarehouseList(); |
|
|
|
|
if (!warehouseList.isEmpty()) { |
|
|
|
|
warehouseIdList.addAll(warehouseList.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList())); |
|
|
|
|
} |
|
|
|
|
// List<BasicdataWarehouseEntity> warehouseList = warehouseClient.getMyWarehouseList();
|
|
|
|
|
// if (!warehouseList.isEmpty()) {
|
|
|
|
|
// warehouseIdList.addAll(warehouseList.stream().map(BasicdataWarehouseEntity::getId).collect(Collectors.toList()));
|
|
|
|
|
// }
|
|
|
|
|
return R.fail("多仓库权限人员请选择仓库后查看"); |
|
|
|
|
}else { |
|
|
|
|
warehouseIdList.add(myCurrentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
@ -2849,7 +2850,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
} |
|
|
|
|
Map<String,List<DistributionParcelListVO>> info = new HashMap<>(); |
|
|
|
|
//查询此暂存单数据在仓库的情况
|
|
|
|
|
List<TrunklineAdvanceDetailEntity> list = trunklineAdvanceDetailClient.selectByOrderCodeAndWarehouseId(orderCode,warehouseIdList.stream().map(String::valueOf).collect(Collectors.joining(","))); |
|
|
|
|
List<TrunklineAdvanceDetailEntity> list = trunklineAdvanceDetailClient.selectByOrderCodeAndWarehouseId(orderCode)); |
|
|
|
|
if (!list.isEmpty()) { |
|
|
|
|
List<String> orderPackageCodes = list.stream().map(TrunklineAdvanceDetailEntity::getOrderPackageCode).collect(Collectors.toList()); |
|
|
|
|
info = handlePackageGroupByWarehouse(list,warehouseIdList,orderPackageCodes,Objects.isNull(myCurrentWarehouse),orderCode); |
|
|
|
@ -2866,7 +2867,7 @@ public class DistributionStockArticleServiceImpl extends BaseServiceImpl<Distrib
|
|
|
|
|
List<DistributionParcelListEntity> parcelListEntities = distributionParcelListService.list(Wrappers.<DistributionParcelListEntity>query().lambda() |
|
|
|
|
.eq(DistributionParcelListEntity::getOrderCode, orderCode) |
|
|
|
|
.in(DistributionParcelListEntity::getOrderPackageCode, orderPackageCodes) |
|
|
|
|
.eq(DistributionParcelListEntity::getIsTransfer, 0) |
|
|
|
|
// .eq(DistributionParcelListEntity::getIsTransfer, 0)
|
|
|
|
|
.in(!aNull,DistributionParcelListEntity::getWarehouseId,warehouseIdList) |
|
|
|
|
); |
|
|
|
|
if (!parcelListEntities.isEmpty()) { |
|
|
|
|