|  | @@ -322,28 +322,27 @@
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |      <select id="teacherList" resultType="com.yonge.cooleshow.biz.dal.vo.PracticeTeacherVo">
 | 
	
		
			
				|  |  |          SELECT
 | 
	
		
			
				|  |  | -            cs.teacher_id_ AS teacherId,
 | 
	
		
			
				|  |  | -            u.username_ AS userName,
 | 
	
		
			
				|  |  | -            u.avatar_ AS avatar,
 | 
	
		
			
				|  |  | +        t.user_id_ AS teacherId,
 | 
	
		
			
				|  |  | +        u.username_ AS userName,
 | 
	
		
			
				|  |  | +        u.avatar_ AS avatar,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            tt.star_grade_ AS starGrade,
 | 
	
		
			
				|  |  | -            tt.exp_time_ AS expTime,
 | 
	
		
			
				|  |  | -            t.graduate_school_ AS school,
 | 
	
		
			
				|  |  | -            t.subject_ AS schoolSubject,
 | 
	
		
			
				|  |  | +        tt.star_grade_ AS starGrade,
 | 
	
		
			
				|  |  | +        tt.exp_time_ AS expTime,
 | 
	
		
			
				|  |  | +        t.graduate_school_ AS school,
 | 
	
		
			
				|  |  | +        t.subject_ AS schoolSubject,
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -            (SELECT group_concat(p.subject_name_) FROM teacher_subject_price p WHERE find_in_set(cs.teacher_id_,p.teacher_id_)) AS configSubject,
 | 
	
		
			
				|  |  | -            sp.subject_id_ AS subjectId,
 | 
	
		
			
				|  |  | -            sp.subject_name_ AS subjectName,
 | 
	
		
			
				|  |  | -            sp.subject_price_ AS subjectPrice,
 | 
	
		
			
				|  |  | -            sp.course_minutes_ AS courseMinutes
 | 
	
		
			
				|  |  | +        (SELECT group_concat(p.subject_name_) FROM teacher_subject_price p WHERE find_in_set(t.user_id_,p.teacher_id_)) AS configSubject,
 | 
	
		
			
				|  |  | +        sp.subject_id_ AS subjectId,
 | 
	
		
			
				|  |  | +        sp.subject_name_ AS subjectName,
 | 
	
		
			
				|  |  | +        sp.subject_price_ AS subjectPrice,
 | 
	
		
			
				|  |  | +        sp.course_minutes_ AS courseMinutes
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        FROM course_schedule cs
 | 
	
		
			
				|  |  | -        LEFT JOIN sys_user u ON cs.teacher_id_ = u.id_
 | 
	
		
			
				|  |  | -        LEFT JOIN teacher_total tt ON cs.teacher_id_=tt.user_id_
 | 
	
		
			
				|  |  | -        LEFT JOIN teacher t ON cs.teacher_id_=t.user_id_
 | 
	
		
			
				|  |  | -        LEFT JOIN teacher_subject_price sp ON cs.teacher_id_=sp.teacher_id_
 | 
	
		
			
				|  |  | +        FROM teacher t
 | 
	
		
			
				|  |  | +        LEFT JOIN sys_user u ON t.user_id_ = u.id_
 | 
	
		
			
				|  |  | +        LEFT JOIN teacher_total tt ON t.user_id_=tt.user_id_
 | 
	
		
			
				|  |  | +        LEFT JOIN teacher_subject_price sp ON t.user_id_=sp.teacher_id_
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        WHERE cs.type_='PRACTICE'
 | 
	
		
			
				|  |  | +        WHERE t.user_id_ IN (SELECT teacher_id_ FROM teacher_free_time GROUP BY teacher_id_)
 | 
	
		
			
				|  |  |          <if test="param.subjectId !=null">
 | 
	
		
			
				|  |  |              AND sp.subject_id_=#{param.subjectId}
 | 
	
		
			
				|  |  |          </if>
 |