| 
					
				 | 
			
			
				@@ -16,10 +16,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="createTime"    column="create_time"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="updateTime"    column="update_time"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <result property="isRevoke"    column="is_revoke"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="time"    column="time"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="fontSize"    column="font_size"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="mode"    column="mode"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <result property="color"    column="color"    /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </resultMap> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <sql id="selectFsCourseWatchCommentVo"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        select comment_id, user_id, user_type, course_id, video_id, type, parent_id, content, create_time, update_time, is_revoke from fs_course_watch_comment 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        select comment_id, user_id, user_type, course_id, video_id, type, parent_id, content, create_time, update_time, is_revoke, `time`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+               font_size, mode, color from fs_course_watch_comment 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </sql> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectFsCourseWatchCommentList" parameterType="FsCourseWatchComment" resultMap="FsCourseWatchCommentResult"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -54,6 +59,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="createTime != null">create_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="updateTime != null">update_time,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isRevoke != null">is_revoke,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="time != null">`time`,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fontSize != null">font_size,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mode != null">mode,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="color != null">color,</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <trim prefix="values (" suffix=")" suffixOverrides=","> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="userId != null">#{userId},</if> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -66,6 +75,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="createTime != null">#{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="updateTime != null">#{updateTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isRevoke != null">#{isRevoke},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="time != null">#{time},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fontSize != null">#{fontSize},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mode != null">#{mode},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="color != null">#{color},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				          </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </insert> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -82,6 +95,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="createTime != null">create_time = #{createTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="updateTime != null">update_time = #{updateTime},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <if test="isRevoke != null">is_revoke = #{isRevoke},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="time != null">`time` = #{time},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="fontSize != null">font_size = #{fontSize},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="mode != null">mode = #{mode},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="color != null">color = #{color},</if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </trim> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         where comment_id = #{commentId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </update> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -99,10 +116,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     <select id="selectH5CourseWatchComments" resultType="com.fs.course.vo.FsCourseWatchCommentVO"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         select cwc.comment_id, cwc.user_id, cwc.user_type, cwc.course_id, cwc.video_id, cwc.type, cwc.content, cwc.create_time, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        fs_user.nick_name from fs_course_watch_comment cwc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        fs_user.nick_name,cwc.time,cwc.font_size, cwc.mode, cwc.color from fs_course_watch_comment cwc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         left join fs_user on fs_user.user_id = cwc.user_id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         <where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            and cwc.is_revoke = 0 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="courseId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and cwc.course_id = #{courseId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+           </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <if test="videoId != null"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                and cwc.video_id = #{videoId} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </if> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </where> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         order by cwc.create_time desc 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     </select> 
			 |