Subversion Repositories SmartDukaan

Rev

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

Rev 28268 Rev 28696
Line 270... Line 270...
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 desc";
274
		sort = "w" + fs.getWarehouseId() + "_i desc";
275
		logger.info("log me");
-
 
276
		dealResponse = this.getCatalogResponse(
275
		dealResponse = this.getCatalogResponse(
277
				solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
276
				solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
278
				hotDeal, userInfo.getRetailerId());
277
				hotDeal, userInfo.getRetailerId());
279
		logger.info(dealResponse);
-
 
280
		logger.info("log me");
278
		logger.info("log me");
281
		return responseSender.ok(dealResponse);
279
		return responseSender.ok(dealResponse);
282
	}
280
	}
283
 
281
 
284
	@RequestMapping(value = "/online-deals", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
282
	@RequestMapping(value = "/online-deals", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)