| Line 375... |
Line 375... |
| 375 |
Double minFBAPrice= null;
|
375 |
Double minFBAPrice= null;
|
| 376 |
Double minMFNPrice= null;
|
376 |
Double minMFNPrice= null;
|
| 377 |
Double salePrice= null;
|
377 |
Double salePrice= null;
|
| 378 |
if(nextLine[30].length() >0){
|
378 |
if(nextLine[30].length() >0){
|
| 379 |
ourPrice = Double.parseDouble(nextLine[30]);
|
379 |
ourPrice = Double.parseDouble(nextLine[30]);
|
| 380 |
if(itemIdOurPriceMap.containsKey(item_id) && itemIdOurPriceMap.get(item_id).getDate().before(date)){
|
380 |
if(itemIdOurPriceMap.containsKey(item_id) && itemIdOurPriceMap.get(item_id).getDate().after(date)){
|
| 381 |
PriceAtDate priceAtDate= new PriceAtDate();
|
381 |
PriceAtDate priceAtDate= new PriceAtDate();
|
| 382 |
priceAtDate.setDate(date);
|
382 |
priceAtDate.setDate(date);
|
| 383 |
priceAtDate.setPrice(ourPrice);
|
383 |
priceAtDate.setPrice(ourPrice);
|
| 384 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
384 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
| 385 |
}
|
385 |
}
|
| Line 390... |
Line 390... |
| 390 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
390 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
| 391 |
}
|
391 |
}
|
| 392 |
}
|
392 |
}
|
| 393 |
if(nextLine[31].length() >0){
|
393 |
if(nextLine[31].length() >0){
|
| 394 |
salePrice = Double.parseDouble(nextLine[31]);
|
394 |
salePrice = Double.parseDouble(nextLine[31]);
|
| 395 |
if(itemIdSalePriceMap.containsKey(item_id) && itemIdSalePriceMap.get(item_id).getDate().before(date)){
|
395 |
if(itemIdSalePriceMap.containsKey(item_id) && itemIdSalePriceMap.get(item_id).getDate().after(date)){
|
| 396 |
PriceAtDate priceAtDate= new PriceAtDate();
|
396 |
PriceAtDate priceAtDate= new PriceAtDate();
|
| 397 |
priceAtDate.setDate(date);
|
397 |
priceAtDate.setDate(date);
|
| 398 |
priceAtDate.setPrice(salePrice);
|
398 |
priceAtDate.setPrice(salePrice);
|
| 399 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
399 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
| 400 |
}
|
400 |
}
|
| Line 405... |
Line 405... |
| 405 |
itemIdSalePriceMap.put(item_id,priceAtDate);
|
405 |
itemIdSalePriceMap.put(item_id,priceAtDate);
|
| 406 |
}
|
406 |
}
|
| 407 |
}
|
407 |
}
|
| 408 |
if(nextLine[32].length() >0){
|
408 |
if(nextLine[32].length() >0){
|
| 409 |
minFBAPrice = Double.parseDouble(nextLine[32]);
|
409 |
minFBAPrice = Double.parseDouble(nextLine[32]);
|
| 410 |
if(itemIdminFBAPriceMap.containsKey(item_id) && itemIdminFBAPriceMap.get(item_id).getDate().before(date)){
|
410 |
if(itemIdminFBAPriceMap.containsKey(item_id) && itemIdminFBAPriceMap.get(item_id).getDate().after(date)){
|
| 411 |
PriceAtDate priceAtDate= new PriceAtDate();
|
411 |
PriceAtDate priceAtDate= new PriceAtDate();
|
| 412 |
priceAtDate.setDate(date);
|
412 |
priceAtDate.setDate(date);
|
| 413 |
priceAtDate.setPrice(minFBAPrice);
|
413 |
priceAtDate.setPrice(minFBAPrice);
|
| 414 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
414 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
| 415 |
}
|
415 |
}
|
| Line 420... |
Line 420... |
| 420 |
itemIdminFBAPriceMap.put(item_id,priceAtDate);
|
420 |
itemIdminFBAPriceMap.put(item_id,priceAtDate);
|
| 421 |
}
|
421 |
}
|
| 422 |
}
|
422 |
}
|
| 423 |
if(nextLine[34].length() >0){
|
423 |
if(nextLine[34].length() >0){
|
| 424 |
minMFNPrice = Double.parseDouble(nextLine[34]);
|
424 |
minMFNPrice = Double.parseDouble(nextLine[34]);
|
| 425 |
if(itemIdminMFNPriceMap.containsKey(item_id) && itemIdminMFNPriceMap.get(item_id).getDate().before(date)){
|
425 |
if(itemIdminMFNPriceMap.containsKey(item_id) && itemIdminMFNPriceMap.get(item_id).getDate().after(date)){
|
| 426 |
PriceAtDate priceAtDate= new PriceAtDate();
|
426 |
PriceAtDate priceAtDate= new PriceAtDate();
|
| 427 |
priceAtDate.setDate(date);
|
427 |
priceAtDate.setDate(date);
|
| 428 |
priceAtDate.setPrice(minMFNPrice);
|
428 |
priceAtDate.setPrice(minMFNPrice);
|
| 429 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
429 |
itemIdOurPriceMap.put(item_id,priceAtDate);
|
| 430 |
}
|
430 |
}
|