| 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")) {
|