短剧新需求

This commit is contained in:
Tankaikai 2025-04-01 09:11:29 +08:00
parent 7b0c54ca22
commit 7bde58522c
1 changed files with 3 additions and 3 deletions

View File

@ -4,20 +4,20 @@
<select id="findInviteFriendList" resultType="com.sqx.modules.ext.dto.InviteFriendDTO">
select
t1.x_user_id as userId,
t1.user_id as userId,
t1.user_name as userName,
t1.phone,
t1.avatar,
ifnull(t2.signInNum,0) as signInNum,
ifnull(t2.awardAmount,0) as awardAmount
from tb_user t1
left JOIN (select x_user_id,sum(money) as awardAmount,sum(case when title = '签到奖励' then 1 else 0 end) as signInNum from user_money_details where classify = 6 group by x_user_id) t2 on t1.x_user_id = t2.x_user_id
left JOIN (select user_id,sum(money) as awardAmount,sum(case when title = '签到奖励' then 1 else 0 end) as signInNum from user_money_details where classify = 6 group by user_id) t2 on t1.user_id = t2.user_id
<where>
<if test="keywords != null and keywords != ''">
and (t1.user_name like concat('%',#{keywords},'%') or t1.phone like concat('%',#{keywords},'%'))
</if>
</where>
ORDER BY t2.signInNum desc,t1.x_user_id asc
ORDER BY t2.signInNum desc,t1.user_id asc
</select>
<select id="findInviteSignInList" resultType="com.sqx.modules.ext.dto.SignInNumDTO">
SELECT