|
@ -13,6 +13,7 @@ |
|
|
<result column="view_count" property="viewCount" /> |
|
|
<result column="view_count" property="viewCount" /> |
|
|
<result column="comment_count" property="commentCount" /> |
|
|
<result column="comment_count" property="commentCount" /> |
|
|
<result column="like_count" property="likeCount" /> |
|
|
<result column="like_count" property="likeCount" /> |
|
|
|
|
|
<result column="club" property="club"/> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<!--点赞操作--> |
|
|
<!--点赞操作--> |
|
|
<update id="addLike" parameterType="org.hlrj.duobao_demo.entity.SpecialTopic"> |
|
|
<update id="addLike" parameterType="org.hlrj.duobao_demo.entity.SpecialTopic"> |
|
@ -39,6 +40,12 @@ |
|
|
<if test="commentCount !=null"> |
|
|
<if test="commentCount !=null"> |
|
|
commentCount=#{commentCount}, |
|
|
commentCount=#{commentCount}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="club !=null and club!=''"> |
|
|
|
|
|
club=#{club}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="head !=null and head!=''"> |
|
|
|
|
|
head=#{head}, |
|
|
|
|
|
</if> |
|
|
like_count = like_count + 1 |
|
|
like_count = like_count + 1 |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id} |
|
|
where id = #{id} |
|
|