|  | @@ -75,6 +75,8 @@ public class ImLiveRoomPurviewServiceImpl extends ServiceImpl<ImLiveRoomPurviewD
 | 
	
		
			
				|  |  |      public void addByCondition(Map<String, Object> param) {
 | 
	
		
			
				|  |  |          String roomUid = WrapperUtil.toStr(param, "roomUid", "房间uid不能为空");
 | 
	
		
			
				|  |  |          param.put("tenantId", TenantContextHolder.getTenantId());
 | 
	
		
			
				|  |  | +        //必需有一个参数条件,要不然数据太多了
 | 
	
		
			
				|  |  | +        this.checkParam(param, "search", "subjectId", "organIds", "groupIds", "teamIds", "schoolIds");
 | 
	
		
			
				|  |  |          //根据条件查询学员
 | 
	
		
			
				|  |  |          List<SysUserDto> studentList = baseMapper.selectRoomPurviewStudent(param);
 | 
	
		
			
				|  |  |          if (CollectionUtils.isEmpty(studentList)) {
 | 
	
	
		
			
				|  | @@ -86,6 +88,25 @@ public class ImLiveRoomPurviewServiceImpl extends ServiceImpl<ImLiveRoomPurviewD
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      /**
 | 
	
		
			
				|  |  | +     * 校验条件,必需有一个参数条件
 | 
	
		
			
				|  |  | +     *
 | 
	
		
			
				|  |  | +     * @param param 参数
 | 
	
		
			
				|  |  | +     * @param keys  参数key
 | 
	
		
			
				|  |  | +     */
 | 
	
		
			
				|  |  | +    private void checkParam(Map<String, Object> param, String... keys) {
 | 
	
		
			
				|  |  | +        String checkVal = null;
 | 
	
		
			
				|  |  | +        for (String key : keys) {
 | 
	
		
			
				|  |  | +            String val = WrapperUtil.toStr(param, key);
 | 
	
		
			
				|  |  | +            if (StringUtils.isNotBlank(val)) {
 | 
	
		
			
				|  |  | +                checkVal = val;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +        if(StringUtils.isBlank(checkVal)){
 | 
	
		
			
				|  |  | +            throw new BizException("必需要有一个查询条件");
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    /**
 | 
	
		
			
				|  |  |       * 指定多个学员id添加观看权限数据
 | 
	
		
			
				|  |  |       *
 | 
	
		
			
				|  |  |       * @param ids     bizId
 |