Subversion Repositories SmartDukaan

Rev

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

Rev 34786 Rev 34797
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();
750
        /*int userId = (int) userInfo.getUserId();
751
        UserCart uc = userAccountRepository.getUserCart(userId);
751
        UserCart uc = userAccountRepository.getUserCart(userId);
752
        int fofoId = uc.getUserId();
752
        int fofoId = uc.getUserId();*/
753
 
753
 
754
        for (WebListing webListing : webListings) {
754
        for (WebListing webListing : webListings) {
755
//            catalogFavouriteList.contains(webListing.getId())?
755
//            catalogFavouriteList.contains(webListing.getId())?
756
            webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing, 0, 20));
756
            webListing.setFofoCatalogResponses(getDealResponses(userInfo, webListing, 0, 20));
757
//            List<FofoCatalogResponse> responseList= new ArrayList<>();
757
//            List<FofoCatalogResponse> responseList= new ArrayList<>();