This commit is contained in:
dute7liang
2023-12-24 00:58:47 +08:00
parent cc467a1105
commit c083cb9763
10 changed files with 137 additions and 15 deletions

View File

@@ -20,6 +20,18 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
where to_uid = #{userId}
group by gift_id
</select>
<select id="countGiftNum" resultType="java.lang.Long">
select ifnull(sum(gift_count),0)
from cai_user_gift
<where>
<if test="fromUid != null">
and from_uid = #{fromUid}
</if>
<if test="toUid != null">
and to_uid = #{toUid}
</if>
</where>
</select>
</mapper>