抽奖绑定order id

This commit is contained in:
2024-12-11 18:08:41 +08:00
parent b4e1fd3826
commit a810db24fe
2 changed files with 3 additions and 0 deletions

View File

@@ -301,6 +301,7 @@
LEFT JOIN disc_spinning_record record ON orders.orders_id = record.order_id
WHERE orders.user_id = #{userId}
AND orders.`status` = 1
AND orders.`pay_way` = 9
AND orders.create_time > DATE_FORMAT(CURDATE(), '%Y-%m-%d 00:00:00')
AND record.order_id IS NULL
ORDER BY orders.create_time LIMIT 1