This commit is contained in:
dute7liang
2023-12-30 18:24:06 +08:00
parent 8d4a3ba746
commit a6f7c6bd0e
20 changed files with 240 additions and 26 deletions

View File

@@ -15,8 +15,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="createTime" column="create_time"/>
</resultMap>
<select id="selectGiftList" resultType="com.ruoyi.cai.dto.app.vo.UserGiftVo">
select to_uid, gift_id, sum(gift_count) as gift_count
from cai_user_gift t
select to_uid, gift_id,
t2.name,
t2.img,
t2.price,
sum(gift_count) as gift_count
from cai_user_gift t1
join cai_gift t2 on t1.gift_id = t2.id
where to_uid = #{userId}
group by gift_id
</select>