Subversion Repositories SmartDukaan

Rev

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

Rev 9518 Rev 9519
Line 368... Line 368...
368
		}
368
		}
369
		int i = 1;
369
		int i = 1;
370
		Gson gson = new Gson();
370
		Gson gson = new Gson();
371
		inventoryhistoryItemMap = new HashMap<String,InventoryHistory>();
371
		inventoryhistoryItemMap = new HashMap<String,InventoryHistory>();
372
		boolean exitfetchinghistory = true;
372
		boolean exitfetchinghistory = true;
373
		System.out.println("Fetching inventory history ");
373
		System.out.println("Fetching history inventory");
374
		while(exitfetchinghistory){
374
		while(exitfetchinghistory){
375
			//System.out.println("Fetching inventory history page " +i);
375
			//System.out.println("Fetching inventory history page " +i);
376
			get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=history&_search=false&nd="+time+"&rows=30&page="+i+"&sidx=&sord=dsc");
376
			get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=history&_search=false&nd="+time+"&rows=30&page="+i+"&sidx=&sord=dsc");
377
			try {
377
			try {
378
				response = client.execute(get);
378
				response = client.execute(get);
Line 492... Line 492...
492
		in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
492
		in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
493
		currentInventoryItemList = new ArrayList<Inventory>();
493
		currentInventoryItemList = new ArrayList<Inventory>();
494
		HttpGet get;
494
		HttpGet get;
495
		HttpResponse response = null;
495
		HttpResponse response = null;
496
		BufferedReader rd= null;
496
		BufferedReader rd= null;
497
		System.out.println("Fetching current inventory page ");
497
		System.out.println("Fetching current inventory ");
498
		while(true){
498
		while(true){
499
			//System.out.println("Fetching current inventory page " +i);
499
			//System.out.println("Fetching current inventory page " +i);
500
			get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=normal&_search=false&nd="+time+"&rows="+30+"&page="+i+"&sidx=&sord=asc");
500
			get = new HttpGet("http://seller.snapdeal.com/inventory/search?gridType=normal&_search=false&nd="+time+"&rows="+30+"&page="+i+"&sidx=&sord=asc");
501
			try {
501
			try {
502
				response = client.execute(get);
502
				response = client.execute(get);