| Line 7... |
Line 7... |
| 7 |
import in.shop2020.model.v1.user.Address;
|
7 |
import in.shop2020.model.v1.user.Address;
|
| 8 |
import in.shop2020.model.v1.user.Cart;
|
8 |
import in.shop2020.model.v1.user.Cart;
|
| 9 |
import in.shop2020.model.v1.user.Line;
|
9 |
import in.shop2020.model.v1.user.Line;
|
| 10 |
import in.shop2020.model.v1.user.User;
|
10 |
import in.shop2020.model.v1.user.User;
|
| 11 |
import in.shop2020.model.v1.user.UserContextService.Client;
|
11 |
import in.shop2020.model.v1.user.UserContextService.Client;
|
| 12 |
import in.shop2020.thrift.clients.CatalogServiceClient;
|
12 |
import in.shop2020.thrift.clients.CatalogClient;
|
| 13 |
import in.shop2020.thrift.clients.TransactionServiceClient;
|
13 |
import in.shop2020.thrift.clients.TransactionClient;
|
| 14 |
import in.shop2020.thrift.clients.UserContextServiceClient;
|
14 |
import in.shop2020.thrift.clients.UserClient;
|
| 15 |
|
15 |
|
| 16 |
import java.io.ByteArrayOutputStream;
|
16 |
import java.io.ByteArrayOutputStream;
|
| 17 |
import java.io.IOException;
|
17 |
import java.io.IOException;
|
| 18 |
import java.text.ParseException;
|
18 |
import java.text.ParseException;
|
| 19 |
import java.util.Calendar;
|
19 |
import java.util.Calendar;
|
| Line 56... |
Line 56... |
| 56 |
this.response = res;
|
56 |
this.response = res;
|
| 57 |
}
|
57 |
}
|
| 58 |
|
58 |
|
| 59 |
public void index(){
|
59 |
public void index(){
|
| 60 |
try {
|
60 |
try {
|
| 61 |
TransactionServiceClient transactionServiceClient = new TransactionServiceClient();
|
61 |
TransactionClient transactionServiceClient = new TransactionClient();
|
| 62 |
in.shop2020.model.v1.order.TransactionService.Client transactionClient = transactionServiceClient.getClient();
|
62 |
in.shop2020.model.v1.order.TransactionService.Client transactionClient = transactionServiceClient.getClient();
|
| 63 |
|
63 |
|
| 64 |
UserContextServiceClient userContextServiceClient = new UserContextServiceClient();
|
64 |
UserClient userContextServiceClient = new UserClient();
|
| 65 |
Client userClient = userContextServiceClient.getClient();
|
65 |
Client userClient = userContextServiceClient.getClient();
|
| 66 |
|
66 |
|
| 67 |
// get carts created in last 15 days.
|
67 |
// get carts created in last 15 days.
|
| 68 |
Date now = new Date();
|
68 |
Date now = new Date();
|
| 69 |
Date from = new Date();
|
69 |
Date from = new Date();
|
| Line 169... |
Line 169... |
| 169 |
Workbook wb, CellStyle style, CellStyle dateCellStyle)
|
169 |
Workbook wb, CellStyle style, CellStyle dateCellStyle)
|
| 170 |
throws Exception
|
170 |
throws Exception
|
| 171 |
{
|
171 |
{
|
| 172 |
CellStyle styleWT = wb.createCellStyle();
|
172 |
CellStyle styleWT = wb.createCellStyle();
|
| 173 |
styleWT.setWrapText(true);
|
173 |
styleWT.setWrapText(true);
|
| 174 |
CatalogServiceClient catalogServiceClient = new CatalogServiceClient();
|
174 |
CatalogClient catalogServiceClient = new CatalogClient();
|
| 175 |
in.shop2020.model.v1.catalog.InventoryService.Client catalogClient = catalogServiceClient.getClient();
|
175 |
in.shop2020.model.v1.catalog.InventoryService.Client catalogClient = catalogServiceClient.getClient();
|
| 176 |
|
176 |
|
| 177 |
// CART SHEET
|
177 |
// CART SHEET
|
| 178 |
Sheet cartSheet = wb.createSheet("Cart");
|
178 |
Sheet cartSheet = wb.createSheet("Cart");
|
| 179 |
short cartSerialNo = 0;
|
179 |
short cartSerialNo = 0;
|