Subversion Repositories SmartDukaan

Rev

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

Rev 10070 Rev 10071
Line 59... Line 59...
59
				"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
59
				"yukti.jain@shop2020.in","manoj.pal@shop2020.in","chandan.kumar@shop2020.in","ankush.dhingra@shop2020.in","amar.kumar@shop2020.in"};
60
		*/
60
		*/
61
		Map<String,Long> itemInventoryMap = FetchInventoryAtFlipkart();
61
		Map<String,Long> itemInventoryMap = FetchInventoryAtFlipkart();
62
		in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = new CatalogClient().getClient();
62
		in.shop2020.model.v1.catalog.CatalogService.Client catalogClient = new CatalogClient().getClient();
63
		List<FlipkartItem> flipkartItems = catalogClient.getAllFlipkartItems();
63
		List<FlipkartItem> flipkartItems = catalogClient.getAllFlipkartItems();
64
		//catalogClient = new CatalogClient().getClient();
-
 
65
		List<Item> aliveItems = catalogClient.getAllAliveItems();
64
		List<Item> aliveItems;
66
		/*try{
65
		try{
67
			aliveItems = catalogClient.getAllAliveItems();
66
			aliveItems = catalogClient.getAllAliveItems();
68
		}
67
		}
69
		catch(Exception e){
68
		catch(Exception e){
70
			catalogClient = new CatalogClient().getClient();
69
			catalogClient = new CatalogClient().getClient();
71
			aliveItems = catalogClient.getAllAliveItems();
70
			aliveItems = catalogClient.getAllAliveItems();
72
		}*/
71
		}
73
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
72
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
74
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
73
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
75
		for(Item item:aliveItems){
74
		for(Item item:aliveItems){
76
			aliveItemsMap.put(item.getId(),item);
75
			aliveItemsMap.put(item.getId(),item);
77
		}
76
		}