|  | @@ -1,7 +1,6 @@
 | 
	
		
			
				|  |  |  package com.citu.module.menduner.system.service.position;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import cn.hutool.core.collection.CollUtil;
 | 
	
		
			
				|  |  | -import com.alibaba.nacos.common.utils.CollectionUtils;
 | 
	
		
			
				|  |  |  import com.citu.framework.common.pojo.PageResult;
 | 
	
		
			
				|  |  |  import com.citu.framework.common.util.object.BeanUtils;
 | 
	
		
			
				|  |  |  import com.citu.module.menduner.system.controller.admin.position.vo.PositionListReqVO;
 | 
	
	
		
			
				|  | @@ -243,7 +242,7 @@ public class PositionServiceImpl implements PositionService {
 | 
	
		
			
				|  |  |          Integer level = 3;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          // 该用户(包括访客)没有埋点
 | 
	
		
			
				|  |  | -        if (CollectionUtils.isNotEmpty(idList)) {
 | 
	
		
			
				|  |  | +        if (idList.size() < 1) {
 | 
	
		
			
				|  |  |              // 随机十条,深度为{level}的数据
 | 
	
		
			
				|  |  |              return PositionConvert.INSTANCE.convertList2(positionMapper.getRandomTenByLevel(level));
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -256,12 +255,12 @@ public class PositionServiceImpl implements PositionService {
 | 
	
		
			
				|  |  |              // 找出埋点的职位数据
 | 
	
		
			
				|  |  |              List<PositionDO> positionDOList2 = positionMapper.selectListByIdList(idList);
 | 
	
		
			
				|  |  |              // 合并数据
 | 
	
		
			
				|  |  | -            List<PositionDO> mergedList =  Stream.concat(
 | 
	
		
			
				|  |  | -                    // positionDOList1 取前 (idList.size() - positionDOList1.size())条数据
 | 
	
		
			
				|  |  | -                    positionDOList1.stream()
 | 
	
		
			
				|  |  | -                         .limit(idList.size() - positionDOList1.size()).collect(Collectors.toList()).stream(),
 | 
	
		
			
				|  |  | +            List<PositionDO> mergedList = Stream.concat(
 | 
	
		
			
				|  |  |                      // positionDOList2 数据
 | 
	
		
			
				|  |  | -                    positionDOList2.stream()
 | 
	
		
			
				|  |  | +                    positionDOList2.stream(),
 | 
	
		
			
				|  |  | +                    // positionDOList1 取前 (positionDOList1.size()-idList.size())条数据
 | 
	
		
			
				|  |  | +                    positionDOList1.stream()
 | 
	
		
			
				|  |  | +                            .limit(positionDOList1.size() - idList.size()).collect(Collectors.toList()).stream()
 | 
	
		
			
				|  |  |              ).collect(Collectors.toList());
 | 
	
		
			
				|  |  |              return PositionConvert.INSTANCE.convertList2(mergedList);
 | 
	
		
			
				|  |  |          }
 |