| Line 15... |
Line 15... |
| 15 |
import in.shop2020.thrift.clients.LogisticsClient;
|
15 |
import in.shop2020.thrift.clients.LogisticsClient;
|
| 16 |
import in.shop2020.thrift.clients.TransactionClient;
|
16 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 17 |
import in.shop2020.thrift.clients.UserClient;
|
17 |
import in.shop2020.thrift.clients.UserClient;
|
| 18 |
import in.shop2020.utils.DataLogger;
|
18 |
import in.shop2020.utils.DataLogger;
|
| 19 |
|
19 |
|
| - |
|
20 |
import java.util.ArrayList;
|
| 20 |
import java.util.List;
|
21 |
import java.util.List;
|
| 21 |
import java.util.ResourceBundle;
|
22 |
import java.util.ResourceBundle;
|
| 22 |
|
23 |
|
| 23 |
import javax.servlet.http.Cookie;
|
24 |
import javax.servlet.http.Cookie;
|
| 24 |
|
25 |
|
| Line 290... |
Line 291... |
| 290 |
|
291 |
|
| 291 |
TransactionClient transactionServiceClient = null;
|
292 |
TransactionClient transactionServiceClient = null;
|
| 292 |
try {
|
293 |
try {
|
| 293 |
transactionServiceClient = new TransactionClient();
|
294 |
transactionServiceClient = new TransactionClient();
|
| 294 |
List<Order> orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
|
295 |
List<Order> orders = transactionServiceClient.getClient().getOrdersForTransaction(txnId, userinfo.getUserId());
|
| 295 |
String itemIdString = Utils.getItemIdStringFromOrders(orders);
|
- |
|
| 296 |
for (Order order : orders) {
|
296 |
for (Order order : orders) {
|
| - |
|
297 |
List<Order> tmpOrders = new ArrayList<Order>();
|
| - |
|
298 |
tmpOrders.add(order);
|
| - |
|
299 |
String itemIdString = Utils.getItemIdStringFromOrders(tmpOrders);
|
| 297 |
DataLogger.logData(EventType.ORDER_CREATION, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
300 |
DataLogger.logData(EventType.ORDER_CREATION, getSessionId(), userinfo.getUserId(), userinfo.getEmail(),
|
| 298 |
Long.toString(order.getId()), Long.toString(currentCartId), itemIdString);
|
301 |
Long.toString(order.getId()), Long.toString(currentCartId), itemIdString);
|
| 299 |
}
|
302 |
}
|
| 300 |
} catch (Exception e1) {
|
303 |
} catch (Exception e1) {
|
| 301 |
log.warn("Unable to log orders through the datalogger", e1);
|
304 |
log.warn("Unable to log orders through the datalogger", e1);
|