|
|
@ -147,10 +147,18 @@ public class DistributionParcelListServiceImpl extends BaseServiceImpl<Distribut |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public IPage<DistributionParcelListVO> selectDistributionParcelListPage(IPage<DistributionParcelListVO> page, DistributionParcelListVO distributionParcelList) { |
|
|
|
public IPage<DistributionParcelListVO> selectDistributionParcelListPage(IPage<DistributionParcelListVO> page, DistributionParcelListVO distributionParcelList) { |
|
|
|
List<BasicdataWarehouseEntity> myWatchWarehouse = basicdataWarehouseClient.getMyWatchWarehouse(); |
|
|
|
BasicdataWarehouseEntity myWatchWarehouse = basicdataWarehouseClient.getMyCurrentWarehouse(); |
|
|
|
List<Long> collect = myWatchWarehouse.stream() |
|
|
|
List<Long> collect = new ArrayList<>(); |
|
|
|
.map(BasicdataWarehouseEntity::getId) |
|
|
|
if(ObjectUtils.isNull(myWatchWarehouse)){ |
|
|
|
.collect(Collectors.toList()); |
|
|
|
List<BasicdataWarehouseEntity> myWatchWarehouse1 = basicdataWarehouseClient.getMyWatchWarehouse(); |
|
|
|
|
|
|
|
myWatchWarehouse1.forEach(t->{ |
|
|
|
|
|
|
|
collect.add(t.getId()); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
collect.add(myWatchWarehouse.getId()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
distributionParcelList.setWarehouseIdList(collect); |
|
|
|
distributionParcelList.setWarehouseIdList(collect); |
|
|
|
List<DistributionParcelListVO> distributionParcelListEntities = baseMapper.selectDistributionParcelListPage(page, distributionParcelList); |
|
|
|
List<DistributionParcelListVO> distributionParcelListEntities = baseMapper.selectDistributionParcelListPage(page, distributionParcelList); |
|
|
|
return page.setRecords(distributionParcelListEntities); |
|
|
|
return page.setRecords(distributionParcelListEntities); |
|
|
|