Commit 5cc6b187 by 魏文甫

update

1 parent 0740af45
......@@ -12,7 +12,7 @@
t_kzy_comment t
LEFT JOIN t_kzy_user u ON t.user_id = u.id AND t.type = 2
WHERE
t.is_delete = 0
t.is_delete = 0 AND t.auth_status=2
AND t.relation_id = #{courseId,jdbcType=BIGINT}
ORDER BY
t.id DESC
......@@ -25,7 +25,34 @@
t_kzy_comment t
LEFT JOIN t_kzy_user u ON t.user_id = u.id AND t.type = 2
WHERE
t.is_delete = 0
t.is_delete = 0 AND t.auth_status=2
AND t.relation_id = #{courseId,jdbcType=BIGINT}
</select>
<select id="informationCommentList" resultType="java.util.HashMap">
SELECT
t.id,
t.create_dt AS createDt,
t.reply_content AS replyContent,
u.full_name AS fullName,
u.head_photo AS headPhoto
FROM
t_kzy_comment t
LEFT JOIN t_kzy_user u ON t.user_id = u.id AND t.type = 1
WHERE
t.is_delete = 0 AND t.auth_status=2
AND t.relation_id = #{courseId,jdbcType=BIGINT}
ORDER BY
t.id DESC
LIMIT #{start,jdbcType=INTEGER},#{pageSize,jdbcType=INTEGER}
</select>
<select id="informationCommentListTotal" resultType="java.lang.Integer">
SELECT
count(t.id)
FROM
t_kzy_comment t
LEFT JOIN t_kzy_user u ON t.user_id = u.id AND t.type = 1
WHERE
t.is_delete = 0 AND t.auth_status=2
AND t.relation_id = #{courseId,jdbcType=BIGINT}
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!