Subversion Repositories SmartDukaan

Rev

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

Rev 26662 Rev 26666
Line 250... Line 250...
250
	@RequestMapping(value = "/store/tag/{tag}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
250
	@RequestMapping(value = "/store/tag/{tag}", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
251
	public ResponseEntity<?> bestSellers(HttpServletRequest request, @PathVariable String tag) throws Exception {
251
	public ResponseEntity<?> bestSellers(HttpServletRequest request, @PathVariable String tag) throws Exception {
252
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
252
		List<FofoCatalogResponse> dealResponse = new ArrayList<>();
253
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
253
		UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
254
		// UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
254
		// UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
255
		List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(userInfo.getRetailerId());
255
		List<Integer> tagIds = Arrays.asList(4);
256
		RestClient rc = new RestClient();
256
		RestClient rc = new RestClient();
257
		Map<String, String> params = new HashMap<>();
257
		Map<String, String> params = new HashMap<>();
258
		List<String> mandatoryQ = new ArrayList<>();
258
		List<String> mandatoryQ = new ArrayList<>();
259
		Set<Integer> catalogIds = this.bestSellers;
259
		Set<Integer> catalogIds = this.bestSellers;
260
		if (tag.equalsIgnoreCase("latestArrivals")) {
260
		if (tag.equalsIgnoreCase("latestArrivals")) {