| 
					
				 | 
			
			
				@@ -544,16 +544,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="search != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%')) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            AND su.id_ NOT IN ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SELECT DISTINCT pg.student_id_ FROM course_schedule_student_payment cssp LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.group_type_='PRACTICE' AND  pg.type_ = 'CHARGE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            AND NOT EXISTS ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                SELECT user_id_ FROM course_schedule_student_payment cssp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                WHERE cssp.user_id_=su.id_ AND cs.teach_mode_='ONLINE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND NOT EXISTS(SELECT student_id_ FROM practice_group WHERE cssp.music_group_id_=id_ AND cssp.group_type_='PRACTICE' AND type_='TRIAL') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ORDER BY su.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <include refid="global.limit"/> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -574,16 +564,6 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="search != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%')) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            AND su.id_ NOT IN ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                SELECT DISTINCT pg.student_id_ FROM course_schedule_student_payment cssp LEFT JOIN practice_group pg ON pg.id_=cssp.music_group_id_ WHERE cssp.group_type_='PRACTICE' AND  pg.type_ = 'CHARGE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            AND NOT EXISTS ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                SELECT user_id_ FROM course_schedule_student_payment cssp 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                LEFT JOIN course_schedule cs ON cs.id_=cssp.course_schedule_id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                WHERE cssp.user_id_=su.id_ AND cs.teach_mode_='ONLINE' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND NOT EXISTS(SELECT student_id_ FROM practice_group WHERE cssp.music_group_id_=id_ AND cssp.group_type_='PRACTICE' AND type_='TRIAL') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="findEnableAssignTeachers" resultType="com.ym.mec.biz.dal.dto.SimpleUserDto"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SELECT su.id_ userId,su.username_ userName,su.avatar_ avatar 
			 |