Subversion Repositories SmartDukaan

Rev

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

Rev 25276 Rev 25389
Line 193... Line 193...
193
			@RequestParam(value = "q", required = false) String queryTerm,
193
			@RequestParam(value = "q", required = false) String queryTerm,
194
			@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
194
			@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
195
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
195
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
196
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
196
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
197
		if (roleManagerService.isPartner(userInfo.getRoleIds())) {
197
		if (roleManagerService.isPartner(userInfo.getRoleIds())) {
198
			UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
198
			//UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
199
			List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(uc.getUserId());
199
			List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(userInfo.getRetailerId());
200
			RestClient rc = new RestClient();
200
			RestClient rc = new RestClient();
201
			Map<String, String> params = new HashMap<>();
201
			Map<String, String> params = new HashMap<>();
202
			List<String> mandatoryQ = new ArrayList<>();
202
			List<String> mandatoryQ = new ArrayList<>();
203
			if (queryTerm != null && !queryTerm.equals("null")) {
203
			if (queryTerm != null && !queryTerm.equals("null")) {
204
				mandatoryQ.add(String.format("+(%s)", queryTerm));
204
				mandatoryQ.add(String.format("+(%s)", queryTerm));