Subversion Repositories SmartDukaan

Rev

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

Rev 31670 Rev 31671
Line 685... Line 685...
685
			throw new ProfitMandiBusinessException("", "", "Could not connect to host");
685
			throw new ProfitMandiBusinessException("", "", "Could not connect to host");
686
		}
686
		}
687
		JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
687
		JSONObject solrResponseJSONObj = new JSONObject(response).getJSONObject("response");
688
		JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
688
		JSONArray docs = solrResponseJSONObj.getJSONArray("docs");
689
		List<FofoCatalogResponse> dealResponse = getCatalogResponse(docs, false, userInfo.getRetailerId());
689
		List<FofoCatalogResponse> dealResponse = getCatalogResponse(docs, false, userInfo.getRetailerId());
690
		/*
690
 
-
 
691
		if (webProducts != null && webListing.getUrl().equals("new-launches")) {
691
		 * if (webProducts != null) { List<Integer> webProductsFinal = webProducts;
692
			List<Integer> webProductsFinal = webProducts;
692
		 * dealResponse = dealResponse.stream() .sorted(Comparator.comparing(x ->
693
			dealResponse = dealResponse.stream()
693
		 * webProductsFinal.indexOf(x.getCatalogId()))) .collect(Collectors.toList());
694
					.sorted(Comparator.comparing(x -> webProductsFinal.indexOf(x.getCatalogId())))
694
		 * 
695
					.collect(Collectors.toList());
695
		 * 
696
 
696
		 * }
697
		}
697
		 */
-
 
698
 
698
 
699
		return dealResponse;
699
		return dealResponse;
700
	}
700
	}
701
 
701
 
702
	@Autowired
702
	@Autowired