|
@@ -27,17 +27,37 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
font_size, mode, color from fs_course_watch_comment
|
|
|
</sql>
|
|
|
|
|
|
- <select id="selectFsCourseWatchCommentList" parameterType="FsCourseWatchComment" resultMap="FsCourseWatchCommentResult">
|
|
|
- <include refid="selectFsCourseWatchCommentVo"/>
|
|
|
+ <select id="selectFsCourseWatchCommentList" resultType="com.fs.course.vo.FsCourseWatchCommentListVO">
|
|
|
+ SELECT
|
|
|
+ fs_course_watch_comment.comment_id,
|
|
|
+ fs_course_watch_comment.user_id,
|
|
|
+ fs_course_watch_comment.user_type,
|
|
|
+ fs_course_watch_comment.course_id,
|
|
|
+ fs_course_watch_comment.video_id,
|
|
|
+ fs_course_watch_comment.type,
|
|
|
+ fs_course_watch_comment.parent_id,
|
|
|
+ fs_course_watch_comment.content,
|
|
|
+ fs_course_watch_comment.create_time,
|
|
|
+ fs_course_watch_comment.update_time,
|
|
|
+ fs_course_watch_comment.is_revoke,
|
|
|
+ fs_course_watch_comment.`time`,
|
|
|
+ fs_course_watch_comment.font_size,
|
|
|
+ fs_course_watch_comment.`mode`,
|
|
|
+ fs_course_watch_comment.color,
|
|
|
+ fs_user.nick_name
|
|
|
+ FROM
|
|
|
+ fs_course_watch_comment
|
|
|
+ LEFT JOIN fs_user ON fs_user.user_id = fs_course_watch_comment.user_id
|
|
|
<where>
|
|
|
- <if test="userId != null "> and user_id = #{userId}</if>
|
|
|
- <if test="userType != null "> and user_type = #{userType}</if>
|
|
|
- <if test="courseId != null "> and course_id = #{courseId}</if>
|
|
|
- <if test="videoId != null "> and video_id = #{videoId}</if>
|
|
|
- <if test="type != null "> and type = #{type}</if>
|
|
|
- <if test="parentId != null "> and parent_id = #{parentId}</if>
|
|
|
- <if test="content != null and content != ''"> and content = #{content}</if>
|
|
|
- <if test="isRevoke != null "> and is_revoke = #{isRevoke}</if>
|
|
|
+ <if test="userId != null "> and fs_course_watch_comment.user_id = #{userId}</if>
|
|
|
+ <if test="userType != null "> and fs_course_watch_comment.user_type = #{userType}</if>
|
|
|
+ <if test="courseId != null "> and fs_course_watch_comment.course_id = #{courseId}</if>
|
|
|
+ <if test="videoId != null "> and fs_course_watch_comment.video_id = #{videoId}</if>
|
|
|
+ <if test="type != null "> and fs_course_watch_comment.type = #{type}</if>
|
|
|
+ <if test="parentId != null "> and fs_course_watch_comment.parent_id = #{parentId}</if>
|
|
|
+ <if test="content != null and content != ''"> and fs_course_watch_comment.content = #{content}</if>
|
|
|
+ <if test="isRevoke != null "> and fs_course_watch_comment.is_revoke = #{isRevoke}</if>
|
|
|
+ <if test="nickName != null and nickName != '' ">and fs_user.nick_name like concat('%', #{nickName}, '%')</if>
|
|
|
</where>
|
|
|
</select>
|
|
|
|