|  | @@ -532,7 +532,7 @@
 | 
											
												
													
														|  |                  AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 |  |                  AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  |              AND su.id_ NOT IN (
 |  |              AND su.id_ NOT IN (
 | 
											
												
													
														|  | -                SELECT student_id_ FROM practice_group WHERE type_='CHARGE'
 |  | 
 | 
											
												
													
														|  | 
 |  | +                SELECT student_id_ FROM practice_group WHERE type_='CHARGE' AND group_status_ IN ('NORMAL', 'FINISH')
 | 
											
												
													
														|  |              )
 |  |              )
 | 
											
												
													
														|  |              AND NOT EXISTS (
 |  |              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 CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW()
 |  |                  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 CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW()
 | 
											
										
											
												
													
														|  | @@ -557,7 +557,7 @@
 | 
											
												
													
														|  |                  AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 |  |                  AND (su.username_ LIKE CONCAT('%', #{search}, '%') OR su.phone_ LIKE CONCAT('%', #{search}, '%'))
 | 
											
												
													
														|  |              </if>
 |  |              </if>
 | 
											
												
													
														|  |              AND su.id_ NOT IN (
 |  |              AND su.id_ NOT IN (
 | 
											
												
													
														|  | -                SELECT student_id_ FROM practice_group WHERE type_='CHARGE'
 |  | 
 | 
											
												
													
														|  | 
 |  | +                SELECT student_id_ FROM practice_group WHERE type_='CHARGE' AND group_status_ IN ('NORMAL', 'FINISH')
 | 
											
												
													
														|  |              )
 |  |              )
 | 
											
												
													
														|  |              AND NOT EXISTS (
 |  |              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 CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW()
 |  |                  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 CONCAT(cs.class_date_, ' ', cs.start_class_time_) > NOW()
 |