Subversion Repositories SmartDukaan

Rev

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

Rev 33542 Rev 33546
Line 304... Line 304...
304
 
304
 
305
            if (!catalogMap.containsKey(item.getCatalogItemId())) {
305
            if (!catalogMap.containsKey(item.getCatalogItemId())) {
306
                Map<String, Object> catalogObj = new HashMap<>();
306
                Map<String, Object> catalogObj = new HashMap<>();
307
                if(similarModelsMap.containsKey(item.getCatalogItemId())) {
307
                if(similarModelsMap.containsKey(item.getCatalogItemId())) {
308
                    catalogObj.put("similarModels", similarModelsMap.get(item.getCatalogItemId()));
308
                    catalogObj.put("similarModels", similarModelsMap.get(item.getCatalogItemId()));
-
 
309
                } else {
-
 
310
                    catalogObj.put("similarModels", Collections.EMPTY_LIST);
309
                }
311
                }
-
 
312
 
310
                catalogObj.put("feature", "");
313
                catalogObj.put("feature", "");
311
                catalogObj.put("hsnCode", item.getHsnCode());
314
                catalogObj.put("hsnCode", item.getHsnCode());
312
                catalogObj.put("title",
315
                catalogObj.put("title",
313
                        String.join(" ", Arrays.asList(item.getBrand(), item.getModelName(), item.getModelNumber())
316
                        String.join(" ", Arrays.asList(item.getBrand(), item.getModelName(), item.getModelNumber())
314
                                .stream().filter(s -> s != null && !s.isEmpty()).collect(Collectors.toList())));
317
                                .stream().filter(s -> s != null && !s.isEmpty()).collect(Collectors.toList())));