| Line 244... |
Line 244... |
| 244 |
in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
|
244 |
in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
|
| 245 |
in.shop2020.model.v1.order.TransactionService.Client transactionClient = transactionServiceClient.getClient();
|
245 |
in.shop2020.model.v1.order.TransactionService.Client transactionClient = transactionServiceClient.getClient();
|
| 246 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = catalogServiceClient.getClient();
|
246 |
in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = catalogServiceClient.getClient();
|
| 247 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
247 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
| 248 |
Date date_today = dateFormat.parse(dateFormat.format(new Date()));
|
248 |
Date date_today = dateFormat.parse(dateFormat.format(new Date()));
|
| 249 |
for(AmazonFbaInventorySnapshot amazonFbaInventory:inventoryClient.getAllNonzeroAmazonFbaItemInventory()){
|
249 |
List<AmazonFbaInventorySnapshot> nonzeroFbaInventorySnapshotlist = inventoryClient.getAllNonzeroAmazonFbaItemInventory();
|
| - |
|
250 |
if(nonzeroFbaInventorySnapshotlist!=null){
|
| - |
|
251 |
for(AmazonFbaInventorySnapshot amazonFbaInventory:nonzeroFbaInventorySnapshotlist){
|
| 250 |
if(orderDateItemIdCountMap.containsKey(date_today) ){
|
252 |
if(orderDateItemIdCountMap.containsKey(date_today) ){
|
| 251 |
if(!orderDateItemIdCountMap.get(date_today).containsKey(amazonFbaInventory.getItem_id())){
|
253 |
if(!orderDateItemIdCountMap.get(date_today).containsKey(amazonFbaInventory.getItem_id())){
|
| 252 |
orderDateItemIdCountMap.get(date_today).put(amazonFbaInventory.getItem_id(),0);
|
254 |
orderDateItemIdCountMap.get(date_today).put(amazonFbaInventory.getItem_id(),0);
|
| 253 |
}
|
255 |
}
|
| 254 |
|
256 |
|
| 255 |
}
|
257 |
}
|
| 256 |
else{
|
258 |
else{
|
| 257 |
Map<Long,Integer> itemIdcountMap = new HashMap<Long,Integer>();
|
259 |
Map<Long,Integer> itemIdcountMap = new HashMap<Long,Integer>();
|
| 258 |
itemIdcountMap.put(amazonFbaInventory.getItem_id(),0);
|
260 |
itemIdcountMap.put(amazonFbaInventory.getItem_id(),0);
|
| 259 |
orderDateItemIdCountMap.put(date_today,itemIdcountMap);
|
261 |
orderDateItemIdCountMap.put(date_today,itemIdcountMap);
|
| - |
|
262 |
}
|
| 260 |
}
|
263 |
}
|
| 261 |
}
|
264 |
}
|
| - |
|
265 |
else{
|
| - |
|
266 |
System.out.println("No inventory in FBA");
|
| - |
|
267 |
}
|
| 262 |
orderDateItemIdCountMap.get(date_today);
|
268 |
orderDateItemIdCountMap.get(date_today);
|
| 263 |
Map<Long,Double> itemIdSalePriceMap = new HashMap<Long,Double>();
|
269 |
Map<Long,Double> itemIdSalePriceMap = new HashMap<Long,Double>();
|
| 264 |
Map<Long,Double> itemIdminFBAPriceMap = new HashMap<Long,Double>();
|
270 |
Map<Long,Double> itemIdminFBAPriceMap = new HashMap<Long,Double>();
|
| 265 |
Map<Long,Double> itemIdminMFNPriceMap = new HashMap<Long,Double>();
|
271 |
Map<Long,Double> itemIdminMFNPriceMap = new HashMap<Long,Double>();
|
| 266 |
count=1;
|
272 |
count=1;
|