33333333333

This commit is contained in:
777
2025-02-17 16:50:26 +08:00
parent 2e0d463354
commit 7d0186302e
7 changed files with 61 additions and 0 deletions

View File

@@ -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