|  | @@ -275,12 +275,19 @@
 | 
	
		
			
				|  |  |          FROM course_schedule_student_payment cssp
 | 
	
		
			
				|  |  |          LEFT JOIN course_schedule cs ON cs.id_ = cssp.course_schedule_id_ AND cs.teach_mode_ = 'ONLINE'
 | 
	
		
			
				|  |  |          LEFT JOIN student s ON s.user_id_ = cssp.user_id_
 | 
	
		
			
				|  |  | +        <if test="groupType != null and groupType==@com.ym.mec.biz.dal.enums.GroupType@PRACTICE">
 | 
	
		
			
				|  |  | +            LEFT JOIN practice_group pg ON cssp.music_group_id_ = pg.id_ AND cssp.group_type_ = 'PRACTICE'
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          WHERE FIND_IN_SET(s.teacher_id_, #{teacherIds})
 | 
	
		
			
				|  |  |          AND cs.status_ IN ('NOT_START', 'UNDERWAY')
 | 
	
		
			
				|  |  |          AND (cs.is_lock_ IS NULL OR cs.is_lock_ = 0)
 | 
	
		
			
				|  |  |          <if test="groupType != null">
 | 
	
		
			
				|  |  |              AND cs.group_type_ = #{groupType,typeHandler=com.ym.mec.common.dal.CustomEnumTypeHandler}
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  | +        <if test="groupType != null and groupType==@com.ym.mec.biz.dal.enums.GroupType@PRACTICE">
 | 
	
		
			
				|  |  | +            AND pg.group_status_ IN ('NORMAL', 'FINISH')
 | 
	
		
			
				|  |  | +            AND pg.buy_months_ >= 1
 | 
	
		
			
				|  |  | +        </if>
 | 
	
		
			
				|  |  |          GROUP BY s.teacher_id_
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |      <select id="getPracticeAndVipNums" resultType="java.util.Map">
 |