抽奖绑定order id

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

View File

@ -140,6 +140,8 @@ public class DiscSpinningController {
new QueryWrapper<DiscSpinning>().eq("disc_type", type).orderByAsc("disc_type", "odds")));
}
//14232
@Login
@GetMapping("/app/discSpinning/drawCount")
@ApiOperation("获取大转盘抽奖次数")

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