|  | @@ -105,20 +105,20 @@
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <select id="queryStudentInfoByGroupId" parameterType="map" resultType="com.yonge.cooleshow.biz.dal.vo.LiveCourseInfoVo$CourseBuyStudentVo">
 | 
	
		
			
				|  |  | -        select distinct a.user_id_      as studentId,
 | 
	
		
			
				|  |  | +        select distinct o.user_id_      as studentId,
 | 
	
		
			
				|  |  |                 b.real_name_    as studentName,
 | 
	
		
			
				|  |  |                 b.username_    as userName,
 | 
	
		
			
				|  |  |                 b.avatar_ as avatar,
 | 
	
		
			
				|  |  | -               a.created_time_ as createTime
 | 
	
		
			
				|  |  | -        from course_schedule_student_payment as a
 | 
	
		
			
				|  |  | -                 left join sys_user as b on a.user_id_ = b.id_
 | 
	
		
			
				|  |  | -                 left join user_order as o on a.order_no_ = o.order_no_
 | 
	
		
			
				|  |  | -        where a.course_group_id_ = #{param.groupId}
 | 
	
		
			
				|  |  | +               a.create_time_ as createTime
 | 
	
		
			
				|  |  | +        from user_order_detail as a
 | 
	
		
			
				|  |  | +        left join user_order as o on a.order_no_ = o.order_no_
 | 
	
		
			
				|  |  | +                 left join sys_user as b on o.user_id_ = b.id_
 | 
	
		
			
				|  |  | +        where a.biz_id_ = #{param.groupId} and a.good_type_ = 'LIVE'
 | 
	
		
			
				|  |  |          <if test="param.orderState != null and param.orderState != ''">
 | 
	
		
			
				|  |  |              AND o.status_ = #{param.orderState}
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |          <if test="param.userId != null and param.userId != ''">
 | 
	
		
			
				|  |  | -            AND a.user_id_ = #{param.userId}
 | 
	
		
			
				|  |  | +            AND o.user_id_ = #{param.userId}
 | 
	
		
			
				|  |  |          </if>
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |      <select id="selectAll" resultType="java.lang.Long">
 |