init
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user