| 
					
				 | 
			
			
				@@ -50,42 +50,34 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.id_                         as courseGroupId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.name_                       as courseGroupName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         s.name_                       as subjectName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a.teacher_id_                 as teacherId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        b.teacher_id_                 as teacherId, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         u.real_name_                  as teacherName, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.course_start_time_          as courseStartTime, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.single_course_minutes_      as singleCourseMinutes, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        a.status_                     as `status`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        b.status_                     as `status`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         ifnull(b.pre_student_num_, 0) as studentCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.background_pic_             as backgroundPic, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.course_price_               as coursePrice, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         b.course_num_                 as courseNum 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         from course_group as b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        left join course_schedule as a on a.course_group_id_ = b.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         left join subject as s on b.subject_id_ = s.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        left join sys_user as u on a.teacher_id_ = u.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        left join sys_user as u on b.teacher_id_ = u.id_ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            a.lock_ = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.teacherId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and b.teacher_id_ = #{param.teacherId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="param.status != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and a.status_ = #{param.status} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.groupStatus != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 and b.status_ = #{param.groupStatus} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="param.type_ != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                and a.type_ = #{param.type} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="param.startDate != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND <![CDATA[ a.class_date_  >= #{param.startDate} ]]> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            <if test="param.endDate != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                AND <![CDATA[ a.class_date_  <= #{param.endDate} ]]> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="param.subjectId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 AND b.subject_id_ = #{param.subjectId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="param.search != null and param.search !=''"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and  ( 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                u.real_name_ like concat('%',#{param.search},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                or b.name_ like concat('%',#{param.search},'%') 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 |