{
"binnerName": "Irfan",
"orderCount": 30
}
Based on above json response
There is one werehouse for that werehouse multiple oders are came for stroing the orders(Binning) inside the werehouse so here one binner has 3 orders so he has to be bin.
first ten order created at 9:00 AM, second ten order created at 9:30 AM and third ten order created at 10:00 AM
for each individual order have 80 mins time limit for binning completion
here binning time has segregate into 3 categories
- time starts from order creation time to 80% of binning time limit
- time from 80% of binning time to 100% of binning time limit
- over the 100% of binning time limit
so I have to segregate the orders based on its order creation time and current time is 10:10AM and above 3 timing categories at a time
so please give me java logic for separate the orders based on 3 time categories and count the no of orders with binnerName present in each category.
give me java code based on above requirment
Irfan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.