33333333333
This commit is contained in:
@@ -15,6 +15,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="giveGiftCount" column="give_gift_count"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
</resultMap>
|
||||
<update id="newStarIncs">
|
||||
update cai_user_count
|
||||
set new_fans_count = new_fans_count + 1
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<update id="newVisitorIncs">
|
||||
update cai_user_count
|
||||
set new_visitor_count = new_visitor_count + 1
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<update id="visitorIncs">
|
||||
update cai_user_count
|
||||
set
|
||||
@@ -22,6 +32,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
visitor_count = visitor_count + #{visitorIncs}
|
||||
where user_id = #{userId}
|
||||
</update>
|
||||
<update id="resetNewStarIncs">
|
||||
update cai_user_count
|
||||
set new_fans_count = 0
|
||||
where user_id = #{userId} and new_fans_count > 0
|
||||
</update>
|
||||
<update id="resetNewVisitorIncs">
|
||||
update cai_user_count
|
||||
set new_visitor_count = 0
|
||||
where user_id = #{userId} and new_visitor_count > 0
|
||||
</update>
|
||||
<select id="starIncs">
|
||||
update cai_user_count
|
||||
set
|
||||
|
||||
Reference in New Issue
Block a user