Subversion Repositories SmartDukaan

Rev

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

Rev 10067 Rev 10069
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();
64
		List<Item> aliveItems;
65
		List<Item> aliveItems = catalogClient.getAllAliveItems();
65
		try{
66
		/*try{
66
			aliveItems = catalogClient.getAllAliveItems();
67
			aliveItems = catalogClient.getAllAliveItems();
67
		}
68
		}
68
		catch(Exception e){
69
		catch(Exception e){
69
			catalogClient = new CatalogClient().getClient();
70
			catalogClient = new CatalogClient().getClient();
70
			aliveItems = catalogClient.getAllAliveItems();
71
			aliveItems = catalogClient.getAllAliveItems();
71
		}
72
		}*/
72
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
73
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
73
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
74
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
74
		for(Item item:aliveItems){
75
		for(Item item:aliveItems){
75
			aliveItemsMap.put(item.getId(),item);
76
			aliveItemsMap.put(item.getId(),item);
76
		}
77
		}