Distribute a ticket to customer service, the requirement is an average. for example, if 10 orders are distributed to 3 customer service, the final result is the first customer service, 4 orders, the remaining two customer service, 3 orders. if there are fewer orders each time, one order is sent at a time. so the first customer service always divides the order. now, the most important thing to do is to record who I allocated the last order, and then next to the last customer service! (Optional) image description (img.ask.csdn.netupload20150720143720.544_858976.png) thinkphpphp algorithm
Distribute a ticket to customer service, which requires an average score
For example, if 10 orders are distributed to 3 customer service, the final result is the first customer service, 4 orders, and the remaining two customer service, 3 orders.
If there are only a few orders at a time, the first customer service will always have the most orders.
What we need to do now is to record who I assigned the last order, and next to the last customer service.