| Line 11... |
Line 11... |
| 11 |
import in.shop2020.thrift.clients.TransactionServiceClient;
|
11 |
import in.shop2020.thrift.clients.TransactionServiceClient;
|
| 12 |
|
12 |
|
| 13 |
import java.io.UnsupportedEncodingException;
|
13 |
import java.io.UnsupportedEncodingException;
|
| 14 |
import java.text.SimpleDateFormat;
|
14 |
import java.text.SimpleDateFormat;
|
| 15 |
import java.util.ArrayList;
|
15 |
import java.util.ArrayList;
|
| - |
|
16 |
import java.util.Collections;
|
| 16 |
import java.util.Date;
|
17 |
import java.util.Date;
|
| 17 |
import java.util.HashMap;
|
18 |
import java.util.HashMap;
|
| 18 |
import java.util.List;
|
19 |
import java.util.List;
|
| 19 |
import java.util.Map;
|
20 |
import java.util.Map;
|
| 20 |
|
21 |
|
| Line 61... |
Line 62... |
| 61 |
|
62 |
|
| 62 |
try{
|
63 |
try{
|
| 63 |
transactionServiceClient = new TransactionServiceClient();
|
64 |
transactionServiceClient = new TransactionServiceClient();
|
| 64 |
orderClient = transactionServiceClient.getClient();
|
65 |
orderClient = transactionServiceClient.getClient();
|
| 65 |
orders = orderClient.getOrdersForCustomer(userinfo.getUserId(), 0, (new Date()).getTime(), OrderStatus.DELIVERY_SUCCESS);
|
66 |
orders = orderClient.getOrdersForCustomer(userinfo.getUserId(), 0, (new Date()).getTime(), OrderStatus.DELIVERY_SUCCESS);
|
| 66 |
|
- |
|
| - |
|
67 |
Collections.reverse(orders);
|
| 67 |
LogisticsServiceClient logisticsServiceClient = new LogisticsServiceClient();
|
68 |
LogisticsServiceClient logisticsServiceClient = new LogisticsServiceClient();
|
| 68 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
69 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = logisticsServiceClient.getClient();
|
| 69 |
List<Provider> providers = logisticsClient.getAllProviders();
|
70 |
List<Provider> providers = logisticsClient.getAllProviders();
|
| 70 |
for(Provider provider: providers)
|
71 |
for(Provider provider: providers)
|
| 71 |
providerNames.put(provider.getId(), provider.getName());
|
72 |
providerNames.put(provider.getId(), provider.getName());
|