幸运24-后台-个人-用户充值等级-查询-sql

This commit is contained in:
2025-08-04 11:12:54 +08:00
parent ab8759e913
commit 7fab2a7f0a
5 changed files with 11 additions and 3 deletions

View File

@@ -73,7 +73,7 @@
from lucky_24_record r force index (lucky_24_record_partition_id_pool_type_create_time_uid_index)
<if test="null != userRechargeLevel and '' != userRechargeLevel">
inner join users u on r.uid = u.uid
inner join user_recharge_level url on u.uid = url.uid and url.level = #{userRechargeLevel}
inner join user_recharge_level url on r.uid = url.uid and url.`level` = #{userRechargeLevel}
</if>
where r.partition_id = #{partitionId}
and r.pool_type in <foreach collection="poolTypeList" item="poolType" separator="," open="(" close=")">#{poolType}</foreach>
@@ -100,7 +100,7 @@
from lucky_24_record r force index (lucky_24_record_partition_id_pool_type_create_time_uid_index)
<if test="null != userRechargeLevel and '' != userRechargeLevel">
inner join users u on r.uid = u.uid
inner join user_recharge_level url on u.uid = url.uid and url.level = #{userRechargeLevel}
inner join user_recharge_level url on r.uid = url.uid and url.`level` = #{userRechargeLevel}
</if>
where r.partition_id = #{partitionId}
and r.pool_type in <foreach collection="poolTypeList" item="poolType" separator="," open="(" close=")">#{poolType}</foreach>