抽奖绑定order id
This commit is contained in:
@@ -140,6 +140,8 @@ public class DiscSpinningController {
|
|||||||
new QueryWrapper<DiscSpinning>().eq("disc_type", type).orderByAsc("disc_type", "odds")));
|
new QueryWrapper<DiscSpinning>().eq("disc_type", type).orderByAsc("disc_type", "odds")));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//14232
|
||||||
@Login
|
@Login
|
||||||
@GetMapping("/app/discSpinning/drawCount")
|
@GetMapping("/app/discSpinning/drawCount")
|
||||||
@ApiOperation("获取大转盘抽奖次数")
|
@ApiOperation("获取大转盘抽奖次数")
|
||||||
|
|||||||
@@ -301,6 +301,7 @@
|
|||||||
LEFT JOIN disc_spinning_record record ON orders.orders_id = record.order_id
|
LEFT JOIN disc_spinning_record record ON orders.orders_id = record.order_id
|
||||||
WHERE orders.user_id = #{userId}
|
WHERE orders.user_id = #{userId}
|
||||||
AND orders.`status` = 1
|
AND orders.`status` = 1
|
||||||
|
AND orders.`pay_way` = 9
|
||||||
AND orders.create_time > DATE_FORMAT(CURDATE(), '%Y-%m-%d 00:00:00')
|
AND orders.create_time > DATE_FORMAT(CURDATE(), '%Y-%m-%d 00:00:00')
|
||||||
AND record.order_id IS NULL
|
AND record.order_id IS NULL
|
||||||
ORDER BY orders.create_time LIMIT 1
|
ORDER BY orders.create_time LIMIT 1
|
||||||
|
|||||||
Reference in New Issue
Block a user