评论,回复,删评
This commit is contained in:
@@ -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>
|
Reference in New Issue
Block a user