| Line 381... |
Line 381... |
| 381 |
}
|
381 |
}
|
| 382 |
if(nextLine[32].length() >0){
|
382 |
if(nextLine[32].length() >0){
|
| 383 |
minFBAPrice = Double.parseDouble(nextLine[32]);
|
383 |
minFBAPrice = Double.parseDouble(nextLine[32]);
|
| 384 |
itemIdminFBAPriceMap.put(item_id,minFBAPrice);
|
384 |
itemIdminFBAPriceMap.put(item_id,minFBAPrice);
|
| 385 |
}
|
385 |
}
|
| 386 |
if(nextLine[32].length() >0){
|
386 |
if(nextLine[34].length() >0){
|
| 387 |
minMFNPrice = Double.parseDouble(nextLine[34]);
|
387 |
minMFNPrice = Double.parseDouble(nextLine[34]);
|
| 388 |
itemIdminMFNPriceMap.put(item_id,minMFNPrice);
|
388 |
itemIdminMFNPriceMap.put(item_id,minMFNPrice);
|
| 389 |
}
|
389 |
}
|
| 390 |
}
|
390 |
}
|
| 391 |
count++;
|
391 |
count++;
|
| Line 412... |
Line 412... |
| 412 |
amazonfbasalessnapshot.setTotalOrderCount(entry1.getValue().getTotalOrderCount());
|
412 |
amazonfbasalessnapshot.setTotalOrderCount(entry1.getValue().getTotalOrderCount());
|
| 413 |
amazonfbasalessnapshot.setTotalSale(entry1.getValue().getTotalSale());
|
413 |
amazonfbasalessnapshot.setTotalSale(entry1.getValue().getTotalSale());
|
| 414 |
amazonfbasalessnapshot.setPromotionSale(entry1.getValue().getTotalPromotionSale());
|
414 |
amazonfbasalessnapshot.setPromotionSale(entry1.getValue().getTotalPromotionSale());
|
| 415 |
amazonfbasalessnapshot.setIsOutOfStock(oos);
|
415 |
amazonfbasalessnapshot.setIsOutOfStock(oos);
|
| 416 |
Amazonlisted amazon_item=null;
|
416 |
Amazonlisted amazon_item=null;
|
| 417 |
if(catalogClient.getAmazonItemDetails(item_id)!=null)
|
417 |
if(catalogClient.getAmazonItemDetails(item_id)!=null){
|
| 418 |
amazon_item = catalogClient.getAmazonItemDetails(item_id);
|
418 |
amazon_item = catalogClient.getAmazonItemDetails(item_id);
|
| - |
|
419 |
}
|
| 419 |
else
|
420 |
else{
|
| 420 |
continue;
|
421 |
continue;
|
| - |
|
422 |
}
|
| 421 |
if(itemIdSalePriceMap.containsKey(item_id) && itemIdSalePriceMap.get(item_id)!=0){
|
423 |
if(itemIdSalePriceMap.containsKey(item_id) && itemIdSalePriceMap.get(item_id)!=0){
|
| 422 |
amazonfbasalessnapshot.setSalePrice(itemIdSalePriceMap.get(item_id));
|
424 |
amazonfbasalessnapshot.setSalePrice(itemIdSalePriceMap.get(item_id));
|
| 423 |
}
|
425 |
}
|
| 424 |
else{
|
426 |
else{
|
| 425 |
amazonfbasalessnapshot.setSalePrice(amazon_item.getFbaPrice());
|
427 |
amazonfbasalessnapshot.setSalePrice(0.0);
|
| 426 |
}
|
428 |
}
|
| 427 |
if(itemIdminMFNPriceMap.containsKey(item_id) && itemIdminMFNPriceMap.get(item_id)!=0){
|
429 |
if(itemIdminMFNPriceMap.containsKey(item_id) && itemIdminMFNPriceMap.get(item_id)!=0){
|
| 428 |
amazonfbasalessnapshot.setMinFbaPrice(itemIdminMFNPriceMap.get(item_id));
|
430 |
amazonfbasalessnapshot.setMinMfnPrice(itemIdminMFNPriceMap.get(item_id));
|
| 429 |
}
|
431 |
}
|
| 430 |
else{
|
432 |
else{
|
| 431 |
amazonfbasalessnapshot.setMinFbaPrice(0.0);
|
433 |
amazonfbasalessnapshot.setMinMfnPrice(0.0);
|
| 432 |
}
|
434 |
}
|
| 433 |
if(itemIdminMFNPriceMap.containsKey(item_id) && itemIdminMFNPriceMap.get(item_id)!=0){
|
435 |
if(itemIdminFBAPriceMap.containsKey(item_id) && itemIdminFBAPriceMap.get(item_id)!=0){
|
| 434 |
amazonfbasalessnapshot.setMinMfnPrice(itemIdminMFNPriceMap.get(item_id));
|
436 |
amazonfbasalessnapshot.setMinFbaPrice(itemIdminFBAPriceMap.get(item_id));
|
| 435 |
}
|
437 |
}
|
| 436 |
else{
|
438 |
else{
|
| 437 |
amazonfbasalessnapshot.setMinMfnPrice(0.0);
|
439 |
amazonfbasalessnapshot.setMinFbaPrice(0.0);
|
| 438 |
}
|
440 |
}
|
| 439 |
if(itemIdOurPriceMap.containsKey(item_id)){
|
441 |
if(itemIdOurPriceMap.containsKey(item_id) && itemIdOurPriceMap.get(item_id)!=0){
|
| 440 |
amazonfbasalessnapshot.setOurPrice(itemIdOurPriceMap.get(item_id));
|
442 |
amazonfbasalessnapshot.setOurPrice(itemIdOurPriceMap.get(item_id));
|
| 441 |
}
|
443 |
}
|
| 442 |
else{
|
444 |
else{
|
| 443 |
amazonfbasalessnapshot.setOurPrice(0);
|
445 |
amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
|
| 444 |
}
|
446 |
}
|
| 445 |
amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
|
447 |
amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
|
| 446 |
transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
|
448 |
transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
|
| 447 |
}
|
449 |
}
|
| 448 |
}
|
450 |
}
|