用户余额心跳调整

This commit is contained in:
hejiayang
2026-01-07 14:53:17 +08:00
parent 9be9985905
commit e39496cca1
@@ -573,11 +573,10 @@
SELECT
member_id,
top_up_balance,
reward_balance,
(top_up_balance + reward_balance) AS balance
FROM
st_client_member_balance
WHERE
reward_balance
FROM st_client_member_balance
WHERE member_id IN (SELECT id FROM sys_user_sub WHERE update_time > FROM_UNIXTIME(#{timestamp}/1000))
OR
create_time > FROM_UNIXTIME(#{timestamp} / 1000)
OR update_time > FROM_UNIXTIME(#{timestamp} / 1000)
OR last_consumption_time > FROM_UNIXTIME(#{timestamp} / 1000)