Subversion Repositories SmartDukaan

Rev

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

Rev 27090 Rev 27092
Line 269... Line 269...
269
			@RequestParam(value = "q", required = false) String queryTerm,
269
			@RequestParam(value = "q", required = false) String queryTerm,
270
			@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
270
			@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
271
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
271
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
272
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
272
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
273
		FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
273
		FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
274
		sort = "w_" + fs.getWarehouseId() + "_i"; 
274
		sort = "w_" + fs.getWarehouseId() + "_i desc"; 
275
		dealResponse = this.getCatalogResponse(
275
		dealResponse = this.getCatalogResponse(
276
				solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
276
				solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
277
				hotDeal, userInfo.getRetailerId());
277
				hotDeal, userInfo.getRetailerId());
278
		return responseSender.ok(dealResponse);
278
		return responseSender.ok(dealResponse);
279
	}
279
	}