|
|
|
@ -1427,7 +1427,12 @@ public class DistrilbutionBillLadingServiceImpl extends BaseServiceImpl<Distrilb
|
|
|
|
|
List<Long> collect = myWatchWarehouse.stream() |
|
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
|
.collect(Collectors.toList()); |
|
|
|
|
BasicdataWarehouseEntity myCurrentWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
|
distrilbutionBillLadingDTO.setWarehouseIdList(collect); |
|
|
|
|
if (Func.isNotEmpty(myWatchWarehouse)){ |
|
|
|
|
distrilbutionBillLadingDTO.setWarehouseIdList(null); |
|
|
|
|
distrilbutionBillLadingDTO.setWarehouseId(myCurrentWarehouse.getId()); |
|
|
|
|
} |
|
|
|
|
IPage<DistrilbutionBillLadingVO> distrilbutionBillLadingVOIPage = baseMapper.pageList(page, distrilbutionBillLadingDTO); |
|
|
|
|
List<DistrilbutionBillLadingVO> records = distrilbutionBillLadingVOIPage.getRecords(); |
|
|
|
|
records.forEach(i -> { |
|
|
|
|