|  | @@ -25,26 +25,24 @@
 | 
	
		
			
				|  |  |      </insert>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="queryStudent" parameterType="object" resultType="com.ym.mec.auth.api.entity.SysUser">
 | 
	
		
			
				|  |  | -        select distinct a.id_        as id,
 | 
	
		
			
				|  |  | -             a.username_  as username,
 | 
	
		
			
				|  |  | -             a.real_name_ as realName,
 | 
	
		
			
				|  |  | -             a.phone_     as phone
 | 
	
		
			
				|  |  | -        from sys_user as a
 | 
	
		
			
				|  |  | -        left join im_live_room_black as b on a.id_ != b.user_id_
 | 
	
		
			
				|  |  | -        <if test="param.roomUid != null">
 | 
	
		
			
				|  |  | -            and b.room_uid_ = #{param.roomUid}
 | 
	
		
			
				|  |  | -        </if>
 | 
	
		
			
				|  |  | +        select distinct id_        as id,
 | 
	
		
			
				|  |  | +        username_  as username,
 | 
	
		
			
				|  |  | +        real_name_ as realName,
 | 
	
		
			
				|  |  | +        phone_     as phone
 | 
	
		
			
				|  |  | +        from sys_user
 | 
	
		
			
				|  |  |          where find_in_set('STUDENT', a.user_type_)
 | 
	
		
			
				|  |  | -        and a.lock_flag_ = 0
 | 
	
		
			
				|  |  | -        and a.del_flag_ = 0
 | 
	
		
			
				|  |  | +        and lock_flag_ = 0
 | 
	
		
			
				|  |  | +        and del_flag_ = 0
 | 
	
		
			
				|  |  | +        and tenant_id_ = 1
 | 
	
		
			
				|  |  | +        and id_ not in (select user_id_  from im_live_room_black where room_uid_ = #{param.roomUid})
 | 
	
		
			
				|  |  |          <if test="param.tenantId != null ">
 | 
	
		
			
				|  |  |              and tenant_id_ = #{param.tenantId}
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          <if test="param.search != null ">
 | 
	
		
			
				|  |  |              and (
 | 
	
		
			
				|  |  | -                 a.`id_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  | -                  OR a.`username_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  | -                 OR a.`phone_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  | +                 `id_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  | +                  OR `username_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  | +                 OR `phone_` LIKE CONCAT('%', #{param.search},'%')
 | 
	
		
			
				|  |  |                 )
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |      </select>
 |