Subversion Repositories SmartDukaan

Rev

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

Rev 10077 Rev 10078
Line 58... Line 58...
58
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
58
				"khushal.bhatia@shop2020.in","manoj.kumar@saholic.com","chaitnaya.vats@saholic.com",
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<Item> aliveItems = catalogClient.getAllAliveItems();
64
		List<Item> aliveItems = null;
64
		List<FlipkartItem> flipkartItems;
65
		try{
65
		try{
66
			aliveItems = catalogClient.getAllAliveItems();
66
			flipkartItems = catalogClient.getAllFlipkartItems();
67
		}
67
		}
68
		catch(Exception ex){
68
		catch(Exception ex){
69
			catalogClient = new CatalogClient().getClient();
69
			catalogClient = new CatalogClient().getClient();
70
			aliveItems = catalogClient.getAllAliveItems();
70
			flipkartItems = catalogClient.getAllFlipkartItems();
71
		}
71
		}
72
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
72
		Map<Long,FlipkartItem> flipkartItemsMap = new HashMap<Long,FlipkartItem>();
73
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
73
		Map<Long,Item> aliveItemsMap = new HashMap<Long,Item>();
74
		for(Item item:aliveItems){
74
		for(Item item:aliveItems){
75
			aliveItemsMap.put(item.getId(),item);
75
			aliveItemsMap.put(item.getId(),item);