Subversion Repositories SmartDukaan

Rev

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

Rev 35345 Rev 35357
Line 9... Line 9...
9
import com.spice.profitmandi.dao.entity.catalog.TagListing;
9
import com.spice.profitmandi.dao.entity.catalog.TagListing;
10
import com.spice.profitmandi.dao.entity.catalog.TagRanking;
10
import com.spice.profitmandi.dao.entity.catalog.TagRanking;
11
import com.spice.profitmandi.dao.entity.dtr.WebProductListing;
11
import com.spice.profitmandi.dao.entity.dtr.WebProductListing;
12
import com.spice.profitmandi.dao.entity.inventory.SaholicCIS;
12
import com.spice.profitmandi.dao.entity.inventory.SaholicCIS;
13
import com.spice.profitmandi.dao.entity.inventory.SaholicPOItem;
13
import com.spice.profitmandi.dao.entity.inventory.SaholicPOItem;
-
 
14
import com.spice.profitmandi.dao.repository.catalog.CatalogRepository;
14
import com.spice.profitmandi.dao.repository.catalog.SuperCatalogMappingRepository;
15
import com.spice.profitmandi.dao.repository.catalog.SuperCatalogMappingRepository;
15
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
16
import com.spice.profitmandi.dao.repository.catalog.TagListingRepository;
16
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
17
import com.spice.profitmandi.dao.repository.catalog.TagRankingRepository;
17
import com.spice.profitmandi.dao.repository.dtr.Mongo;
18
import com.spice.profitmandi.dao.repository.dtr.Mongo;
18
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
19
import com.spice.profitmandi.dao.repository.dtr.WebListingRepository;
Line 55... Line 56...
55
 
56
 
56
    @Autowired
57
    @Autowired
57
    private TagListingRepository tagListingRepository;
58
    private TagListingRepository tagListingRepository;
58
 
59
 
59
    @Autowired
60
    @Autowired
-
 
61
    private CatalogRepository catalogRepository;
-
 
62
 
-
 
63
    @Autowired
60
    TagRankingRepository tagRankingRepository;
64
    TagRankingRepository tagRankingRepository;
61
 
65
 
62
    @Autowired
66
    @Autowired
63
    private Mongo contentMongoClient;
67
    private Mongo contentMongoClient;
64
 
68
 
Line 279... Line 283...
279
 
283
 
280
        Map<Integer, List<String>> catalogLabelMap = this.getLabels();
284
        Map<Integer, List<String>> catalogLabelMap = this.getLabels();
281
 
285
 
282
        //logger.info("catalogLabelMap {}", catalogLabelMap);
286
        //logger.info("catalogLabelMap {}", catalogLabelMap);
283
 
287
 
284
        List<ItemTagModel> itemTagModels = tagListingRepository.getAllItemTagByStatus(statuses);
288
        List<ItemTagModel> itemTagModelsByStatus = tagListingRepository.getAllItemTagByStatus(statuses);
-
 
289
 
-
 
290
        List<Integer> eolItemIds = catalogRepository.findAllWithEOLWithOutStockItemId();
-
 
291
 
-
 
292
        Set<Integer> eolSet = new HashSet<>(eolItemIds);
-
 
293
 
-
 
294
 
-
 
295
//        remove eol itme id from listing
-
 
296
 
-
 
297
        List<ItemTagModel> itemTagModels =
-
 
298
                itemTagModelsByStatus.stream()
-
 
299
                        .filter(itm -> !eolSet.contains(itm.getItem().getId()))
-
 
300
                        .collect(Collectors.toList());
285
 
301
 
286
        Map<String, Object> projection = new HashMap<>();
302
        Map<String, Object> projection = new HashMap<>();
287
        projection.put("defaultImageUrl", 1);
303
        projection.put("defaultImageUrl", 1);
288
 
304
 
289
        List<String> excludeBrands = Arrays.asList("Dummy", "FOC HANDSET");
305
        List<String> excludeBrands = Arrays.asList("Dummy", "FOC HANDSET");