How to generate an admission ticket online based on the existing user registration information in the database table and create an admission ticket for each user (especially the admission ticket number and test location, could you give me some advice ?, The admission ticket number is not generated online, but is generated and saved in advance. generally, candidates from the same location should distribute the admission ticket evenly to each test ThinkPHP to generate the admission ticket online.
How to create an admission ticket for each user (especially the admission ticket number and test location) based on the existing user registration information in the database table?
------ Solution --------------------
The admission ticket number is not generated and saved online.
Generally, candidates from the same location should be evenly assigned to each test site. candidates from the same location are not adjacent to each test site.
------ Solution --------------------
The basic algorithm is roughly as follows:
The number of test sites is known, and the number is sequential. candidates are sorted by source.
Traverse candidates and assign test sites. For each assignment, the test site number is plus one (cyclic count)
Repeat the above process for each test site to allocate seats
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.