| Line 356... |
Line 356... |
| 356 |
}
|
356 |
}
|
| 357 |
else{
|
357 |
else{
|
| 358 |
amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
|
358 |
amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
|
| 359 |
amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
|
359 |
amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
|
| 360 |
}
|
360 |
}
|
| - |
|
361 |
if(amazonfbasalessnapshot.getTotalOrderCount() > 0){
|
| 361 |
Date date = new Date(amazonfbasalessnapshot.getDateOfSale());
|
362 |
Date date = new Date(amazonfbasalessnapshot.getDateOfSale());
|
| 362 |
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
|
363 |
SimpleDateFormat sdf = new SimpleDateFormat("dd-MM-yyyy");
|
| 363 |
System.out.println(" Item details are " + sdf.format(date) + " "+ amazonfbasalessnapshot.getItem_id() + " " + amazonfbasalessnapshot.getTotalOrderCount());
|
364 |
System.out.println(" Item details are " + sdf.format(date) + " "+ amazonfbasalessnapshot.getItem_id() + " " + amazonfbasalessnapshot.getTotalOrderCount());
|
| - |
|
365 |
}
|
| 364 |
amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
|
366 |
amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
|
| 365 |
transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
|
367 |
transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
|
| 366 |
}
|
368 |
}
|
| 367 |
}
|
369 |
}
|
| 368 |
} catch (IOException e) {
|
370 |
} catch (IOException e) {
|