| Line 550... |
Line 550... |
| 550 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
550 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
| 551 |
Integer storeId = userInfo.getRetailerId();
|
551 |
Integer storeId = userInfo.getRetailerId();
|
| 552 |
|
552 |
|
| 553 |
List<Integer> webProducts = webProductListingRepository.selectAllByWebListingId(webListing.getId()).stream()
|
553 |
List<Integer> webProducts = webProductListingRepository.selectAllByWebListingId(webListing.getId()).stream()
|
| 554 |
.filter(x -> x.getRank() > 0).map(x -> x.getEntityId()).collect(Collectors.toList());
|
554 |
.filter(x -> x.getRank() > 0).map(x -> x.getEntityId()).collect(Collectors.toList());
|
| - |
|
555 |
if(webProducts.size() > 0) {
|
| - |
|
556 |
logger.info("Could not add the listing");
|
| - |
|
557 |
continue;
|
| 555 |
|
558 |
}
|
| 556 |
RestClient rc = new RestClient();
|
559 |
RestClient rc = new RestClient();
|
| 557 |
Map<String, String> params = new HashMap<>();
|
560 |
Map<String, String> params = new HashMap<>();
|
| 558 |
List<String> mandatoryQ = new ArrayList<>();
|
561 |
List<String> mandatoryQ = new ArrayList<>();
|
| 559 |
mandatoryQ.add(String.format(
|
562 |
mandatoryQ.add(String.format(
|
| 560 |
"+{!parent which=\"catalogId_i:" + StringUtils.join(webProducts, " ") + "\"} tagId_i:(%s)",
|
563 |
"+{!parent which=\"catalogId_i:" + StringUtils.join(webProducts, " ") + "\"} tagId_i:(%s)",
|