Subversion Repositories SmartDukaan

Rev

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

Rev 31634 Rev 31641
Line 297... Line 297...
297
			}
297
			}
298
 
298
 
299
			if (!catalogMap.containsKey(item.getCatalogItemId())) {
299
			if (!catalogMap.containsKey(item.getCatalogItemId())) {
300
				Map<String, Object> catalogObj = new HashMap<>();
300
				Map<String, Object> catalogObj = new HashMap<>();
301
				catalogObj.put("feature", "");
301
				catalogObj.put("feature", "");
-
 
302
				catalogObj.put("hsnCode", item.getHsnCode());
302
				catalogObj.put("title",
303
				catalogObj.put("title",
303
						String.join(" ", Arrays.asList(item.getBrand(), item.getModelName(), item.getModelNumber())
304
						String.join(" ", Arrays.asList(item.getBrand(), item.getModelName(), item.getModelNumber())
304
								.stream().filter(s -> s != null && !s.isEmpty()).collect(Collectors.toList())));
305
								.stream().filter(s -> s != null && !s.isEmpty()).collect(Collectors.toList())));
305
				catalogObj.put("brand", new String[] { item.getBrand() });
306
				catalogObj.put("brand", new String[] { item.getBrand() });
306
				if (item.getBrand().equals("Huawei") || item.getBrand().equals("Honor")) {
307
				if (item.getBrand().equals("Huawei") || item.getBrand().equals("Honor")) {
Line 472... Line 473...
472
			catalogSolrObj.setField("w8889_i", 0);
473
			catalogSolrObj.setField("w8889_i", 0);
473
			catalogSolrObj.setField("w8947_i", 0);
474
			catalogSolrObj.setField("w8947_i", 0);
474
			catalogSolrObj.setField("w9213_i", 0);
475
			catalogSolrObj.setField("w9213_i", 0);
475
			catalogSolrObj.setField("w9203_i", 0);
476
			catalogSolrObj.setField("w9203_i", 0);
476
			catalogSolrObj.setField("mop_f", mop);
477
			catalogSolrObj.setField("mop_f", mop);
-
 
478
			catalogSolrObj.setField("hsncode_s", catalogValMap.get("hsnCode"));
477
			catalogSolrObj.setField("show_default_b", false);
479
			catalogSolrObj.setField("show_default_b", false);
478
 
480
 
479
			String[] brands = (String[]) catalogValMap.get("brand");
481
			String[] brands = (String[]) catalogValMap.get("brand");
480
			for (String brand : brands) {
482
			for (String brand : brands) {
481
				if (brand != "FOC") {
483
				if (brand != "FOC") {