This commit is contained in:
dute7liang
2023-12-30 19:24:56 +08:00
parent a6f7c6bd0e
commit abb61de844
54 changed files with 277 additions and 98 deletions

View File

@@ -33,6 +33,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</if>
order by t1.create_time desc
</select>
<select id="selectDynamicImageList" resultType="java.lang.String">
select t2.url
from cai_dynamic t1
join cai_dynamic_images t2 on t1.id = t2.user_id
where t1.status = 1 and t1.user_id = #{userId}
limit #{limit}
</select>
</mapper>

View File

@@ -19,7 +19,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
guard_value = guard_value + #{guardValue}
where to_user_id = #{toUserId} and from_user_id = #{fromUserId}
</update>
<select id="selectGuardTotal" resultType="com.ruoyi.cai.dto.app.vo.GuardTotalVo">
<select id="selectGuardTotal" resultType="com.ruoyi.cai.dto.app.dto.GuardTotalDTO">
select t1.from_user_id,t1.to_user_id,t2.avatar,t1.guard_num
from cai_guard_total t1
join cai_user t2 on t1.to_user_id = t2.id
@@ -29,6 +29,25 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
limit #{limit}
</if>
</select>
<select id="guardCount" resultType="java.lang.Long">
select ifnull(sum(guard_num),0)
from cai_guard_total t1
join cai_user t2 on t1.to_user_id = t2.id
where t1.from_user_id = #{fromUserId}
</select>
<select id="guardPersonCount" resultType="java.lang.Long">
select ifnull(count(1),0)
from cai_guard_total t1
join cai_user t2 on t1.to_user_id = t2.id
where t1.from_user_id = #{fromUserId}
</select>
<select id="userGuardPage" resultType="com.ruoyi.cai.dto.app.vo.index.GuardListPageVo">
select t1.to_user_id as user_id, t2.nickname,t2.avatar,t2.usercode,t1.guard_num,t1.guard_value
from cai_guard_total t1
join cai_user t2 on t1.to_user_id = t2.id
where t1.from_user_id = #{userId}
order by guard_num desc
</select>
</mapper>

View File

@@ -14,8 +14,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="giftAmount" column="gift_amount"/>
<result property="createTime" column="create_time"/>
</resultMap>
<select id="selectGiftList" resultType="com.ruoyi.cai.dto.app.vo.UserGiftVo">
select to_uid, gift_id,
<select id="selectGiftList" resultType="com.ruoyi.cai.dto.app.vo.index.UserGiftIndexVo">
select
from_uid,
to_uid,
gift_id,
t2.name,
t2.img,
t2.price,