Subversion Repositories SmartDukaan

Rev

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

Rev 35357 Rev 35358
Line 285... Line 285...
285
 
285
 
286
        //logger.info("catalogLabelMap {}", catalogLabelMap);
286
        //logger.info("catalogLabelMap {}", catalogLabelMap);
287
 
287
 
288
        List<ItemTagModel> itemTagModelsByStatus = tagListingRepository.getAllItemTagByStatus(statuses);
288
        List<ItemTagModel> itemTagModelsByStatus = tagListingRepository.getAllItemTagByStatus(statuses);
289
 
289
 
-
 
290
        logger.info("itemTagModelsByStatus {}" , itemTagModelsByStatus.size());
-
 
291
 
290
        List<Integer> eolItemIds = catalogRepository.findAllWithEOLWithOutStockItemId();
292
        List<Integer> eolItemIds = catalogRepository.findAllWithEOLWithOutStockItemId();
291
 
293
 
-
 
294
        logger.info("eolItemIds.size {}" , eolItemIds.size());
-
 
295
 
292
        Set<Integer> eolSet = new HashSet<>(eolItemIds);
296
        Set<Integer> eolSet = new HashSet<>(eolItemIds);
293
 
297
 
-
 
298
        logger.info("eolSetItemIds.size {}" , eolSet.size());
294
 
299
 
295
//        remove eol itme id from listing
300
//        remove eol itme id from listing
296
 
301
 
297
        List<ItemTagModel> itemTagModels =
302
        List<ItemTagModel> itemTagModels = new ArrayList<>();
-
 
303
 
298
                itemTagModelsByStatus.stream()
304
        for (ItemTagModel itm : itemTagModelsByStatus) {
-
 
305
            // Check if the item's ID is NOT contained in the eolSet
299
                        .filter(itm -> !eolSet.contains(itm.getItem().getId()))
306
            if (!eolSet.contains(itm.getItem().getId())) {
-
 
307
                // If it's NOT EOL, add it to the new list
300
                        .collect(Collectors.toList());
308
                itemTagModels.add(itm);
-
 
309
            }
-
 
310
        }
-
 
311
 
-
 
312
        logger.info("itemTagModels {}" , itemTagModels.size());
301
 
313
 
302
        Map<String, Object> projection = new HashMap<>();
314
        Map<String, Object> projection = new HashMap<>();
303
        projection.put("defaultImageUrl", 1);
315
        projection.put("defaultImageUrl", 1);
304
 
316
 
305
        List<String> excludeBrands = Arrays.asList("Dummy", "FOC HANDSET");
317
        List<String> excludeBrands = Arrays.asList("Dummy", "FOC HANDSET");