Subversion Repositories SmartDukaan

Rev

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

Rev 32544 Rev 32545
Line 679... Line 679...
679
        Iterator<WebListing> webListingIterator = webListings.iterator();
679
        Iterator<WebListing> webListingIterator = webListings.iterator();
680
        while (webListingIterator.hasNext()) {
680
        while (webListingIterator.hasNext()) {
681
            WebListing webListing = webListingIterator.next();
681
            WebListing webListing = webListingIterator.next();
682
            List<FofoCatalogResponse> catalogResponses = getDealResponses(userInfo, webListing);
682
            List<FofoCatalogResponse> catalogResponses = getDealResponses(userInfo, webListing);
683
            boolean isAvailable = catalogResponses.stream().anyMatch(x->x.getItems().stream().anyMatch(y->y.getAvailability()>0));
683
            boolean isAvailable = catalogResponses.stream().anyMatch(x->x.getItems().stream().anyMatch(y->y.getAvailability()>0));
-
 
684
            webListing.setFofoCatalogResponses(catalogResponses);
684
            if(!isAvailable) {
685
            if(!isAvailable) {
685
                webListings.remove(webListing);
686
                webListings.remove(webListing);
686
            }
687
            }
687
        }
688
        }
688
 
689