|
|
|
@ -2558,22 +2558,11 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
distrilbutionBillLadingDTO.setPickupBatchs(strs); |
|
|
|
|
distrilbutionBillLadingDTO.setOrderCodes(orderCodes); |
|
|
|
|
//获取当前登录人仓库
|
|
|
|
|
List<BasicdataWarehouseEntity> warehouseList = basicdataWarehouseClient.getMyWarehouseList(); |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = null; |
|
|
|
|
|
|
|
|
|
List<Long> collect = null; |
|
|
|
|
List<Long> collect = basicdataWarehouseClient.getWarehouseIds(); |
|
|
|
|
|
|
|
|
|
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = null; |
|
|
|
|
if (Func.isNotEmpty(myCurrentWarehouse)) { |
|
|
|
|
collect = new ArrayList<>(); |
|
|
|
|
collect.add(myCurrentWarehouse.getId()); |
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
// distrilbutionBillLadingVOIPage = baseMapper.getAllBillLadingByView(page, distrilbutionBillLadingDTO, collect);
|
|
|
|
|
collect = warehouseList.stream() |
|
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
distrilbutionBillLadingVOIPage = baseMapper.pageList(page, distrilbutionBillLadingDTO, collect); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|