Subversion Repositories SmartDukaan

Rev

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

Rev 10140 Rev 10142
Line 399... Line 399...
399
				e1.printStackTrace();
399
				e1.printStackTrace();
400
			} catch (TException e) {
400
			} catch (TException e) {
401
				logger.error("Problem.. thrift exception with Transaction service " , e);
401
				logger.error("Problem.. thrift exception with Transaction service " , e);
402
				e.printStackTrace();
402
				e.printStackTrace();
403
			}
403
			}
-
 
404
			flipkartItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
-
 
405
			sku = flipkartItem.getItem_id(); 
404
			Transaction txn = new Transaction();
406
			Transaction txn = new Transaction();
405
			txn.setShoppingCartid(user.getActiveCartId());
407
			txn.setShoppingCartid(user.getActiveCartId());
406
			txn.setCustomer_id(user.getUserId());
408
			txn.setCustomer_id(user.getUserId());
407
			System.out.println("User Id is " + user.getUserId());
409
			System.out.println("User Id is " + user.getUserId());
408
			txn.setCreatedOn(new Date().getTime());
410
			txn.setCreatedOn(new Date().getTime());
Line 463... Line 465...
463
					sb.append(orderId + " "+ subOrderId  + " Could not update delivery time" + " " + "\n");
465
					sb.append(orderId + " "+ subOrderId  + " Could not update delivery time" + " " + "\n");
464
					exit = true;
466
					exit = true;
465
					continue;
467
					continue;
466
				}
468
				}
467
			}
469
			}
468
			flipkartItem = new CatalogClient("catalog_service_server_host_amazon","catalog_service_server_port").getClient().getFlipkartItemBySkyAtFlipkart(skuAtFlipkart);
-
 
469
			sku = flipkartItem.getItem_id(); 
-
 
470
			inventoryClient = new InventoryClient().getClient();
470
			inventoryClient = new InventoryClient().getClient();
471
			try {
471
			try {
472
				logger.info("Flipkart Item id is " + flipkartItem.getItem_id());
472
				logger.info("Flipkart Item id is " + flipkartItem.getItem_id());
473
				if(flipkartItem.getItem_id()!=0 && flipkartItem.getWarehouseId()!=0) {
473
				if(flipkartItem.getItem_id()!=0 && flipkartItem.getWarehouseId()!=0) {
474
					logger.info("SnapdealItem Warehouse Id " + flipkartItem.getWarehouseId());
474
					logger.info("SnapdealItem Warehouse Id " + flipkartItem.getWarehouseId());