Subversion Repositories SmartDukaan

Rev

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

Rev 31551 Rev 31552
Line 279... Line 279...
279
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
279
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
280
		FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
280
		FofoStore fs = fofoStoreRepository.selectByRetailerId(userInfo.getRetailerId());
281
		sort = "w" + fs.getWarehouseId() + "_i desc";
281
		sort = "w" + fs.getWarehouseId() + "_i desc";
282
 
282
 
283
		logger.info("endPoint {}", endPoint);
283
		logger.info("endPoint {}", endPoint);
284
		if (endPoint == null) {
-
 
285
			dealResponse = this.getCatalogResponse(
-
 
286
					solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
-
 
287
					hotDeal, userInfo.getRetailerId());
-
 
288
		} else {
-
 
289
 
284
 
-
 
285
		if (endPoint != null && !endPoint.trim().isEmpty()) {
290
			WebListing webListing = webListingRepository.selectByUrl(endPoint);
286
			WebListing webListing = webListingRepository.selectByUrl(endPoint);
291
			dealResponse = this.getDealResponses(userInfo, webListing);
287
			dealResponse = this.getDealResponses(userInfo, webListing);
-
 
288
 
-
 
289
		} else {
-
 
290
 
-
 
291
			dealResponse = this.getCatalogResponse(
-
 
292
					solrService.getSolrDocs(queryTerm, categoryId, offset, limit, sort, brand, subCategoryId, hotDeal),
-
 
293
					hotDeal, userInfo.getRetailerId());
292
		}
294
		}
293
		logger.info("log me");
295
		logger.info("log me");
294
		return responseSender.ok(dealResponse);
296
		return responseSender.ok(dealResponse);
295
	}
297
	}
296
 
298