One-yuan lottery, a 129-yuan lottery. When the number of copies purchased reaches 129, it will automatically enter the next round.
How can we automatically enter the next round, including generating a new round of order numbers and purchase queues.
The lottery is considered concurrent. Many people buy at the same time, so I really can’t figure out how to control which round they bought.
129 keeps decrementing by one. When it reaches zero, the data is inserted into the new one, and another period is 129, and the cycle continues. You can lock the operation in the middle