| Line 1... |
Line 1... |
| 1 |
package in.shop2020.serving.controllers;
|
1 |
package in.shop2020.serving.controllers;
|
| 2 |
|
2 |
|
| 3 |
import java.text.SimpleDateFormat;
|
3 |
import java.text.SimpleDateFormat;
|
| 4 |
import java.util.ArrayList;
|
4 |
import java.util.ArrayList;
|
| - |
|
5 |
import java.util.Collections;
|
| 5 |
import java.util.Date;
|
6 |
import java.util.Date;
|
| 6 |
import java.util.HashMap;
|
7 |
import java.util.HashMap;
|
| 7 |
import java.util.List;
|
8 |
import java.util.List;
|
| 8 |
import java.util.Map;
|
9 |
import java.util.Map;
|
| 9 |
|
10 |
|
| Line 52... |
Line 53... |
| 52 |
|
53 |
|
| 53 |
try {
|
54 |
try {
|
| 54 |
TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
|
55 |
TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
|
| 55 |
in.shop2020.model.v1.order.TransactionService.Client orderClient = transactionServiceClient.getClient();
|
56 |
in.shop2020.model.v1.order.TransactionService.Client orderClient = transactionServiceClient.getClient();
|
| 56 |
orders = orderClient.getOrdersForCustomer(userinfo.getUserId(), 0, (new Date()).getTime(), null);
|
57 |
orders = orderClient.getOrdersForCustomer(userinfo.getUserId(), 0, (new Date()).getTime(), null);
|
| - |
|
58 |
//Reverse the list of order. Last come first displayed
|
| 57 |
|
59 |
Collections.reverse(orders);
|
| 58 |
LogisticsServiceClient logisticsServiceClient = new LogisticsServiceClient();
|
60 |
LogisticsServiceClient logisticsServiceClient = new LogisticsServiceClient();
|
| 59 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
61 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
| 60 |
List<Provider> providers = logisticsClient.getAllProviders();
|
62 |
List<Provider> providers = logisticsClient.getAllProviders();
|
| 61 |
|
63 |
|
| 62 |
for(Provider provider: providers)
|
64 |
for(Provider provider: providers)
|