Subversion Repositories SmartDukaan

Rev

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

Rev 26654 Rev 26658
Line 257... Line 257...
257
		List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(userInfo.getRetailerId());
257
		List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(userInfo.getRetailerId());
258
		RestClient rc = new RestClient();
258
		RestClient rc = new RestClient();
259
		Map<String, String> params = new HashMap<>();
259
		Map<String, String> params = new HashMap<>();
260
		List<String> mandatoryQ = new ArrayList<>();
260
		List<String> mandatoryQ = new ArrayList<>();
261
		Set<Integer> catalogIds = this.bestSellers;
261
		Set<Integer> catalogIds = this.bestSellers;
262
		if (tag == "latestArrivals") {
262
		if (tag.equalsIgnoreCase("latestArrivals")) {
263
			catalogIds = this.latestArrivals;
263
			catalogIds = this.latestArrivals;
264
		}
264
		}
265
		mandatoryQ.add(
265
		mandatoryQ.add(
266
				String.format("+{!parent which=\"catalogId_i:" + StringUtils.join(catalogIds, " ") + "\"} tagId_i:(%s)",
266
				String.format("+{!parent which=\"catalogId_i:" + StringUtils.join(catalogIds, " ") + "\"} tagId_i:(%s)",
267
						StringUtils.join(tagIds, " ")));
267
						StringUtils.join(tagIds, " ")));