| Line 61... |
Line 61... |
| 61 |
CatalogClient catalogServiceClient = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(),
|
61 |
CatalogClient catalogServiceClient = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(),
|
| 62 |
ConfigClientKeys.catalog_service_server_port.toString());
|
62 |
ConfigClientKeys.catalog_service_server_port.toString());
|
| 63 |
InventoryService.Client catalogClient = catalogServiceClient.getClient();
|
63 |
InventoryService.Client catalogClient = catalogServiceClient.getClient();
|
| 64 |
thriftItemListInactive.addAll(catalogClient.getAllItemsByStatus(status.PAUSED));
|
64 |
thriftItemListInactive.addAll(catalogClient.getAllItemsByStatus(status.PAUSED));
|
| 65 |
if(TYPE_INACTIVE != type){
|
65 |
if(TYPE_INACTIVE != type){
|
| - |
|
66 |
catalogServiceClient = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(),
|
| - |
|
67 |
ConfigClientKeys.catalog_service_server_port.toString());
|
| - |
|
68 |
catalogClient = catalogServiceClient.getClient();
|
| 66 |
thriftItemList.addAll(catalogClient.getAllItemsByStatus(status.ACTIVE));
|
69 |
thriftItemList.addAll(catalogClient.getAllItemsByStatus(status.ACTIVE));
|
| - |
|
70 |
|
| - |
|
71 |
catalogServiceClient = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(),
|
| - |
|
72 |
ConfigClientKeys.catalog_service_server_port.toString());
|
| - |
|
73 |
catalogClient = catalogServiceClient.getClient();
|
| 67 |
thriftItemList.addAll(catalogClient.getAllItemsByStatus(status.PAUSED_BY_RISK));
|
74 |
thriftItemList.addAll(catalogClient.getAllItemsByStatus(status.PAUSED_BY_RISK));
|
| 68 |
thriftItemList.addAll(thriftItemListInactive);
|
75 |
thriftItemList.addAll(thriftItemListInactive);
|
| 69 |
Sheet ngpSheet = wb.createSheet("Negative Gross Profit");
|
76 |
Sheet ngpSheet = wb.createSheet("Negative Gross Profit");
|
| 70 |
rowNo = 0;
|
77 |
rowNo = 0;
|
| 71 |
|
78 |
|
| Line 127... |
Line 134... |
| 127 |
}
|
134 |
}
|
| 128 |
}
|
135 |
}
|
| 129 |
|
136 |
|
| 130 |
|
137 |
|
| 131 |
if(TYPE_BREAKEVEN != type){
|
138 |
if(TYPE_BREAKEVEN != type){
|
| - |
|
139 |
catalogServiceClient = new CatalogClient(ConfigClientKeys.catalog_service_server_host_prod.toString(),
|
| - |
|
140 |
ConfigClientKeys.catalog_service_server_port.toString());
|
| - |
|
141 |
catalogClient = catalogServiceClient.getClient();
|
| - |
|
142 |
|
| 132 |
thriftItemListInactive.addAll(catalogClient.getAllItemsByStatus(status.PHASED_OUT));
|
143 |
thriftItemListInactive.addAll(catalogClient.getAllItemsByStatus(status.PHASED_OUT));
|
| 133 |
Sheet inactiveItemsSheet = wb.createSheet("Inactive Items with Positive Inventory");
|
144 |
Sheet inactiveItemsSheet = wb.createSheet("Inactive Items with Positive Inventory");
|
| 134 |
rowNo = 0;
|
145 |
rowNo = 0;
|
| 135 |
Row anotherHeaderRow = inactiveItemsSheet.createRow(0);
|
146 |
Row anotherHeaderRow = inactiveItemsSheet.createRow(0);
|
| 136 |
anotherHeaderRow.createCell(0).setCellValue("Item Id");
|
147 |
anotherHeaderRow.createCell(0).setCellValue("Item Id");
|