| Line 335... |
Line 335... |
| 335 |
// TODO Auto-generated catch block
|
335 |
// TODO Auto-generated catch block
|
| 336 |
e.printStackTrace();
|
336 |
e.printStackTrace();
|
| 337 |
}
|
337 |
}
|
| 338 |
InventoryItems inventoryitems = (InventoryItems) gson.fromJson(rd, InventoryItems.class);
|
338 |
InventoryItems inventoryitems = (InventoryItems) gson.fromJson(rd, InventoryItems.class);
|
| 339 |
if(inventoryitems.getRows().size()!=0){
|
339 |
if(inventoryitems.getRows().size()!=0){
|
| - |
|
340 |
System.out.println("Parsing page " + i);
|
| 340 |
for(Inventory inventory : inventoryitems.getRows()){
|
341 |
for(Inventory inventory : inventoryitems.getRows()){
|
| 341 |
/*System.out.println("SUPC " + inventory.getSupc());
|
342 |
/*System.out.println("SUPC " + inventory.getSupc());
|
| 342 |
System.out.println("SKU " + inventory.getSellerSku());
|
343 |
System.out.println("SKU " + inventory.getSellerSku());
|
| 343 |
System.out.println("Product Name " + inventory.getProductName());
|
344 |
System.out.println("Product Name " + inventory.getProductName());
|
| 344 |
System.out.println("Quantity " + inventory.getAvailableInventory());
|
345 |
System.out.println("Quantity " + inventory.getAvailableInventory());
|
| 345 |
System.out.println("Pending " + inventory.getPendingAvailableInventory());
|
346 |
System.out.println("Pending " + inventory.getPendingAvailableInventory());
|
| 346 |
System.out.println("Status " + inventory.isPendingUpdate());
|
347 |
System.out.println("Status " + inventory.isPendingUpdate());
|
| 347 |
*/
|
348 |
*/
|
| 348 |
System.out.println("Parsing page " + i);
|
- |
|
| 349 |
pending_orders=0;
|
349 |
pending_orders=0;
|
| 350 |
try{
|
350 |
try{
|
| 351 |
inventory_item = inventoryClient.getSnapdealInventoryForItem(Long.parseLong(inventory.getSellerSku()));
|
351 |
inventory_item = inventoryClient.getSnapdealInventoryForItem(Long.parseLong(inventory.getSellerSku()));
|
| 352 |
}
|
352 |
}
|
| 353 |
catch(NumberFormatException nfe)
|
353 |
catch(NumberFormatException nfe)
|