| Line 745... |
Line 745... |
| 745 |
|
745 |
|
| 746 |
@RequestMapping(value = "/partner/listing", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
746 |
@RequestMapping(value = "/partner/listing", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
|
| 747 |
public ResponseEntity<?> getPartnersListing(HttpServletRequest request) throws Exception {
|
747 |
public ResponseEntity<?> getPartnersListing(HttpServletRequest request) throws Exception {
|
| 748 |
List<WebListing> webListings = webListingRepository.selectAllWebListingByType(Optional.of(true), WebListingSource.partner);
|
748 |
List<WebListing> webListings = webListingRepository.selectAllWebListingByType(Optional.of(true), WebListingSource.partner);
|
| 749 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
749 |
UserInfo userInfo = (UserInfo) request.getAttribute("userInfo");
|
| 750 |
/*int userId = (int) userInfo.getUserId();
|
- |
|
| 751 |
UserCart uc = userAccountRepository.getUserCart(userId);
|
- |
|
| 752 |
int fofoId = uc.getUserId();*/
|
- |
|
| 753 |
|
750 |
|
| 754 |
for (WebListing webListing : webListings) {
|
751 |
for (WebListing webListing : webListings) {
|
| 755 |
// catalogFavouriteList.contains(webListing.getId())?
|
752 |
// catalogFavouriteList.contains(webListing.getId())?
|
| 756 |
webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing, 0, 20));
|
753 |
webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing, 0, 20));
|
| 757 |
// List<FofoCatalogResponse> responseList= new ArrayList<>();
|
754 |
// List<FofoCatalogResponse> responseList= new ArrayList<>();
|