Subversion Repositories SmartDukaan

Rev

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

Rev 33563 Rev 33565
Line 295... Line 295...
295
            if (!catalogMap.containsKey(item.getCatalogItemId())) {
295
            if (!catalogMap.containsKey(item.getCatalogItemId())) {
296
 
296
 
297
                if (!priceModelMap.containsKey(tagListing.getSellingPrice()) && item.getCategoryId() == 10006) {
297
                if (!priceModelMap.containsKey(tagListing.getSellingPrice()) && item.getCategoryId() == 10006) {
298
                    priceModelMap.put(tagListing.getSellingPrice(), new ArrayList<>());
298
                    priceModelMap.put(tagListing.getSellingPrice(), new ArrayList<>());
299
                }
299
                }
-
 
300
                if(item.getCategoryId()==10006) {
300
                List<Integer> priceModels = priceModelMap.get(tagListing.getSellingPrice());
301
                    List<Integer> priceModels = priceModelMap.get(tagListing.getSellingPrice());
301
                priceModels.add(item.getCatalogItemId());
302
                    priceModels.add(item.getCatalogItemId());
-
 
303
                }
302
 
304
 
303
                Map<String, Object> catalogObj = new HashMap<>();
305
                Map<String, Object> catalogObj = new HashMap<>();
304
 
306
 
305
                catalogObj.put("feature", "");
307
                catalogObj.put("feature", "");
306
                catalogObj.put("hsnCode", item.getHsnCode());
308
                catalogObj.put("hsnCode", item.getHsnCode());
Line 460... Line 462...
460
                    if (modelPrice >= starPrice && modelPrice <= endPrice) {
462
                    if (modelPrice >= starPrice && modelPrice <= endPrice) {
461
                        similalarModels.addAll(floatListEntry.getValue());
463
                        similalarModels.addAll(floatListEntry.getValue());
462
                    }
464
                    }
463
                    if (modelPrice > endPrice) break;
465
                    if (modelPrice > endPrice) break;
464
                }
466
                }
465
                similalarModels.remove(catalogId);
467
                similalarModels.remove(Integer.valueOf(catalogId));
466
            }
468
            }
467
 
469
 
468
 
470
 
469
            logger.info("catalogValMap {}", catalogValMap);
471
            logger.info("catalogValMap {}", catalogValMap);
470
 
472