Home > Back-end >  Seat reservation temporarily leave how to implement
Seat reservation temporarily leave how to implement

Time:09-27

Seat reservation, users need to temporarily leave, must leave within 1 hour after come back, the background with springboot need how to realize hope bosses give an idea

CodePudding user response:

Click on the booking, the countdown 1 hour, after an hour

CodePudding user response:

reference response: 1/f friendship dream
click on the booking, the countdown 1 hour, after an hour of failure

Specific how to implement?

CodePudding user response:

Check the timing task framework, can also use a thread to write a timed task,

CodePudding user response:

Seat free, appointments, sit three state,
When free seat booked, just change the seat state to make an appointment, and into the thread, the countdown 60 minutes, when seated, stop the thread, or timeout also stop the thread, the corresponding also to change the seat

CodePudding user response:

People don't think with the countdown, one hundred people is about to start one hundred threads? Can use springboot timing task, every ten minutes or a few minutes to check all leave leave time, business processing

CodePudding user response:

Grab a storage structure to take leave and come back save information, together to calculate the final settlement
  • Related