评论,回复,删评

This commit is contained in:
sjm
2023-12-22 10:03:33 +08:00
parent 1399bfd1e5
commit ae032c0d53
5 changed files with 114 additions and 15 deletions

View File

@@ -32,7 +32,7 @@
root_comment_id, like_count, comment_time,
comment_status, update_time, rating
)
values (#{urlId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR},
values (#{urlId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR},
#{rootCommentId,jdbcType=INTEGER}, #{likeCount,jdbcType=BIGINT}, #{commentTime,jdbcType=TIMESTAMP},
#{commentStatus,jdbcType=TINYINT}, #{updateTime,jdbcType=TIMESTAMP}, #{rating,jdbcType=INTEGER}
)
@@ -144,4 +144,12 @@
rating = #{rating,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
<select id="selectByRootId" parameterType="java.lang.Integer" resultMap="BaseResultMap">
select
id
from ln_comment
where root_comment_id = #{rootCommentId,jdbcType=INTEGER}
</select>
</mapper>