Compare commits
No commits in common. "c98bd3741652853deceba237252f1212d0b5023a" and "c3a363981f49c459a945b0c037524993d546cb3f" have entirely different histories.
c98bd37416
...
c3a363981f
@ -426,7 +426,6 @@ balance_sum AS (
|
||||
LEFT JOIN bundle_order_records bor2 ON bor2.uuid = bb2.order_uuid
|
||||
JOIN latest_per_order bb_latest ON bb2.user_id = bb_latest.user_id AND bb2.order_uuid = bb_latest.order_uuid AND bb2.month = bb_latest.max_month
|
||||
WHERE bb2.deleted_at IS NULL AND bor2.deleted_at IS NULL AND bor2.status=2
|
||||
AND DATE_ADD(UTC_TIMESTAMP(), INTERVAL 8 HOUR) BETWEEN bb2.start_at AND bb2.expired_at
|
||||
GROUP BY bb2.user_id
|
||||
),
|
||||
cw_agg AS (
|
||||
|
||||
Loading…
Reference in New Issue
Block a user