|  | @@ -256,19 +256,19 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      <!-- 查询用户参与记录 -->
 | 
	
		
			
				|  |  |      <select id="getParticipationRecordByMap" resultType="com.fs.course.vo.FsUserCourseParticipationRecordVO">
 | 
	
		
			
				|  |  | -        select distinct
 | 
	
		
			
				|  |  | +        select
 | 
	
		
			
				|  |  |              fu.user_id,
 | 
	
		
			
				|  |  | -            fuc.course_id,
 | 
	
		
			
				|  |  | +            fucv.video_id,
 | 
	
		
			
				|  |  |              fu.nickname as nickName,
 | 
	
		
			
				|  |  |              fu.username as userName,
 | 
	
		
			
				|  |  |              fu.avatar,
 | 
	
		
			
				|  |  |              fu.phone as phoneNumber,
 | 
	
		
			
				|  |  |              fu.create_time,
 | 
	
		
			
				|  |  |              max(fcwl.create_time) as watchDate
 | 
	
		
			
				|  |  | -        from fs_user_course fuc
 | 
	
		
			
				|  |  | -        inner join fs_course_watch_log fcwl on fcwl.course_id = fuc.course_id
 | 
	
		
			
				|  |  | +        from fs_user_course_video fucv
 | 
	
		
			
				|  |  | +        inner join fs_course_watch_log fcwl on fcwl.video_id = fucv.video_id
 | 
	
		
			
				|  |  |          inner join fs_user fu on fu.user_id = fcwl.user_id
 | 
	
		
			
				|  |  | -        where fuc.course_id = #{params.courseId}
 | 
	
		
			
				|  |  | +        where fucv.video_id = #{params.videoId}
 | 
	
		
			
				|  |  |          <if test="params.keyword != null and params.keyword != ''">
 | 
	
		
			
				|  |  |              and (
 | 
	
		
			
				|  |  |                  fu.user_id = #{params.keyword}
 | 
	
	
		
			
				|  | @@ -282,7 +282,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |                  and (
 | 
	
		
			
				|  |  |                      select count(log_id) as count
 | 
	
		
			
				|  |  |                      from fs_course_answer_logs
 | 
	
		
			
				|  |  | -                    where user_id = fu.user_id and course_id = fuc.course_id and is_right = 1
 | 
	
		
			
				|  |  | +                    where user_id = fu.user_id and fcwl.video_id = fucv.video_id and is_right = 1
 | 
	
		
			
				|  |  |                  ) > 0
 | 
	
		
			
				|  |  |              </when>
 | 
	
		
			
				|  |  |              <when test="params.type == 1">
 | 
	
	
		
			
				|  | @@ -295,6 +295,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 | 
	
		
			
				|  |  |                  and fcwl.log_type = 3
 | 
	
		
			
				|  |  |              </otherwise>
 | 
	
		
			
				|  |  |          </choose>
 | 
	
		
			
				|  |  | +        group by fu.user_id, fucv.video_id, fu.nickname, fu.username, fu.avatar, fu.phone, fu.create_time
 | 
	
		
			
				|  |  |      </select>
 | 
	
		
			
				|  |  |      <select id="selectFsUserCourseListCompanyPVO" resultType="com.fs.course.vo.FsUserCourseListPVO">
 | 
	
		
			
				|  |  |          select c.*,cc.cate_name,ucc.cate_name as sub_cate_name from fs_user_course  c
 |