抽奖绑定order id
This commit is contained in:
parent
b4e1fd3826
commit
a810db24fe
|
|
@ -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("获取大转盘抽奖次数")
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue