| Line 193... |
Line 193... |
| 193 |
@RequestParam(value = "q", required = false) String queryTerm,
|
193 |
@RequestParam(value = "q", required = false) String queryTerm,
|
| 194 |
@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
|
194 |
@RequestParam(value = "hotDeal", required = false) boolean hotDeal) throws Throwable {
|
| 195 |
List<FofoCatalogResponse> dealResponse = new ArrayList<>();
|
195 |
List<FofoCatalogResponse> dealResponse = new ArrayList<>();
|
| 196 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
196 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
| 197 |
if (roleManagerService.isPartner(userInfo.getRoleIds())) {
|
197 |
if (roleManagerService.isPartner(userInfo.getRoleIds())) {
|
| 198 |
UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
|
198 |
//UserCart uc = userAccountRepository.getUserCart(userInfo.getUserId());
|
| 199 |
List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(uc.getUserId());
|
199 |
List<Integer> tagIds = pricingService.getTagsIdsByRetailerId(userInfo.getRetailerId());
|
| 200 |
RestClient rc = new RestClient();
|
200 |
RestClient rc = new RestClient();
|
| 201 |
Map<String, String> params = new HashMap<>();
|
201 |
Map<String, String> params = new HashMap<>();
|
| 202 |
List<String> mandatoryQ = new ArrayList<>();
|
202 |
List<String> mandatoryQ = new ArrayList<>();
|
| 203 |
if (queryTerm != null && !queryTerm.equals("null")) {
|
203 |
if (queryTerm != null && !queryTerm.equals("null")) {
|
| 204 |
mandatoryQ.add(String.format("+(%s)", queryTerm));
|
204 |
mandatoryQ.add(String.format("+(%s)", queryTerm));
|