| Line 50... |
Line 50... |
| 50 |
String [] nextLine;
|
50 |
String [] nextLine;
|
| 51 |
try {
|
51 |
try {
|
| 52 |
int count =1;
|
52 |
int count =1;
|
| 53 |
Map<Date,Map<Long,FbaSalesSnapshot>> orderDateItemIdFbaSaleSnapshotMap = new HashMap<Date,Map<Long,FbaSalesSnapshot>>();
|
53 |
Map<Date,Map<Long,FbaSalesSnapshot>> orderDateItemIdFbaSaleSnapshotMap = new HashMap<Date,Map<Long,FbaSalesSnapshot>>();
|
| 54 |
while ((nextLine = orderreportreader.readNext()) != null) {
|
54 |
while ((nextLine = orderreportreader.readNext()) != null) {
|
| 55 |
//if(count!=1 && nextLine[5].equalsIgnoreCase("Amazon") && nextLine[6].equalsIgnoreCase("Amazon.in")){
|
55 |
if(count!=1 && nextLine[5].equalsIgnoreCase("Amazon") && nextLine[6].equalsIgnoreCase("Amazon.in")){
|
| 56 |
SimpleDateFormat istFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
56 |
SimpleDateFormat istFormatter = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss");
|
| 57 |
istFormatter .setLenient(false);
|
57 |
istFormatter .setLenient(false);
|
| 58 |
TimeZone zone= TimeZone.getTimeZone("GMT");
|
58 |
TimeZone zone= TimeZone.getTimeZone("GMT");
|
| 59 |
istFormatter.setTimeZone(zone);
|
59 |
istFormatter.setTimeZone(zone);
|
| 60 |
Date date = istFormatter.parse(nextLine[2]);
|
60 |
Date date = istFormatter.parse(nextLine[2]);
|
| Line 135... |
Line 135... |
| 135 |
fbaSalesSnapshot.setPromotionOrderCount(0);
|
135 |
fbaSalesSnapshot.setPromotionOrderCount(0);
|
| 136 |
}
|
136 |
}
|
| 137 |
ItemIdFbaSaleSnapshotMap.put(itemid,fbaSalesSnapshot);
|
137 |
ItemIdFbaSaleSnapshotMap.put(itemid,fbaSalesSnapshot);
|
| 138 |
orderDateItemIdFbaSaleSnapshotMap.put(date_key,ItemIdFbaSaleSnapshotMap);
|
138 |
orderDateItemIdFbaSaleSnapshotMap.put(date_key,ItemIdFbaSaleSnapshotMap);
|
| 139 |
}
|
139 |
}
|
| 140 |
//}
|
140 |
}
|
| 141 |
count++;
|
141 |
count++;
|
| 142 |
}
|
142 |
}
|
| 143 |
InventoryClient inventoryServiceClient = null;
|
143 |
InventoryClient inventoryServiceClient = null;
|
| 144 |
TransactionClient transactionServiceClient = null;
|
144 |
TransactionClient transactionServiceClient = null;
|
| 145 |
CatalogClient catalogServiceClient = null;
|
145 |
CatalogClient catalogServiceClient = null;
|