Subversion Repositories SmartDukaan

Rev

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

Rev 9785 Rev 9802
Line 628... Line 628...
628
							e.printStackTrace();
628
							e.printStackTrace();
629
						}
629
						}
630
						count++;
630
						count++;
631
					}
631
					}
632
					boolean oos;
632
					boolean oos;
-
 
633
					List<AmazonFbaSalesSnapshot> fbaSalesSnapShotList = new ArrayList<AmazonFbaSalesSnapshot>();
633
					for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){
634
					for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){
634
						Date orderDate = entry.getKey();
635
						Date orderDate = entry.getKey();
635
						for(Entry<Long, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
636
						for(Entry<Long, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
636
							System.out.println("Item ID is " + entry1.getKey());
637
							System.out.println("Item ID is " + entry1.getKey());
637
							Long inventory = inventoryClient.getAmazonFbaItemInventory(entry1.getKey());
638
							Long inventory = inventoryClient.getAmazonFbaItemInventory(entry1.getKey());
Line 687... Line 688...
687
							else{
688
							else{
688
								amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
689
								amazonfbasalessnapshot.setOurPrice(amazon_item.getFbaPrice());
689
								amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
690
								amazonfbasalessnapshot.setOurPriceSnapshotDate(0);
690
							}
691
							}
691
							amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
692
							amazonfbasalessnapshot.setAmazonFbaInventory(inventory);
692
							transactionClient.addOrUpdateAmazonFbaSalesSnapshot(amazonfbasalessnapshot);
693
							fbaSalesSnapShotList.add(amazonfbasalessnapshot);
693
						}
694
						}
694
					}
695
					}
-
 
696
					transactionServiceClient.getClient().bulkAddOrUpdateAmazonFbaSalesSnapshot(fbaSalesSnapShotList);
695
				} catch (IOException e) {
697
				} catch (IOException e) {
696
					// TODO Auto-generated catch block
698
					// TODO Auto-generated catch block
697
					e.printStackTrace();
699
					e.printStackTrace();
698
				} catch (ParseException e) {
700
				} catch (ParseException e) {
699
					// TODO Auto-generated catch block
701
					// TODO Auto-generated catch block