Subversion Repositories SmartDukaan

Rev

Rev 9330 | Rev 10534 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9330 Rev 9802
Line 483... Line 483...
483
							e.printStackTrace();
483
							e.printStackTrace();
484
						}
484
						}
485
						count++;
485
						count++;
486
					}
486
					}
487
					boolean oos;
487
					boolean oos;
-
 
488
					List<AmazonFbaSalesSnapshot> fbaSalesSnapShotList = new ArrayList<AmazonFbaSalesSnapshot>();
488
					for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){
489
					for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){
489
						Date orderDate = entry.getKey();
490
						Date orderDate = entry.getKey();
490
						for(Entry<Long, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
491
						for(Entry<Long, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
491
							System.out.println("Item ID is " + entry1.getKey());
492
							System.out.println("Item ID is " + entry1.getKey());
492
							Long inventory = inventoryClient.getAmazonFbaItemInventory(entry1.getKey());
493
							Long inventory = inventoryClient.getAmazonFbaItemInventory(entry1.getKey());
Line 542... Line 543...
542
							else{
543
							else{
543
								amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
544
								amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
544
								amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
545
								amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
545
							}
546
							}
546
							amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
547
							amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
547
							transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
548
							fbaSalesSnapShotList.add(amazonfbasalessnapshot);
548
						}
549
						}
549
					}
550
					}
-
 
551
					transactionServiceClient.getClient().bulkAddOrUpdateAmazonFbaSalesSnapshot(fbaSalesSnapShotList);
550
				} catch (IOException e) {
552
				} catch (IOException e) {
551
					// TODO Auto-generated catch block
553
					// TODO Auto-generated catch block
552
					e.printStackTrace();
554
					e.printStackTrace();
553
				} catch (ParseException e) {
555
				} catch (ParseException e) {
554
					// TODO Auto-generated catch block
556
					// TODO Auto-generated catch block