Subversion Repositories SmartDukaan

Rev

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

Rev 29358 Rev 29359
Line 29... Line 29...
29
			// e.printStackTrace();
29
			// e.printStackTrace();
30
			return null;
30
			return null;
31
		}
31
		}
32
 
32
 
33
		LOGGER.info("cp" + cp);
33
		LOGGER.info("cp" + cp);
34
		try {
-
 
35
			pp = new ProductPojo();
-
 
36
			pp.setId(entityId);
-
 
37
			pp.setDefaultImgUrl(cp.getDefaultImageUrl());
-
 
38
			pp.setDescription(String.join(", ", cp.getKeySpecs().subList(0, Math.min(cp.getKeySpecs().size(), 3))));
-
 
39
			pp.setImageUrl(cp.getDefaultImageUrl());
-
 
40
			pp.setUrl(cp.getUrl());
-
 
41
			pp.setTitle(cp.getTitle());
-
 
42
 
34
 
-
 
35
		pp = new ProductPojo();
-
 
36
		pp.setId(entityId);
-
 
37
		pp.setDefaultImgUrl(cp.getDefaultImageUrl());
-
 
38
		pp.setDescription(String.join(", ", cp.getKeySpecs().subList(0, Math.min(cp.getKeySpecs().size(), 3))));
-
 
39
		pp.setImageUrl(cp.getDefaultImageUrl());
-
 
40
		pp.setUrl(cp.getUrl());
43
			LOGGER.info("ppoo" + pp);
41
		pp.setTitle(cp.getTitle());
44
 
42
 
45
		} catch (Exception e) {
-
 
46
			e.printStackTrace();
-
 
47
			LOGGER.info("excepro {}", e);
-
 
48
 
-
 
49
			pp = null;
-
 
50
		}
-
 
51
		return pp;
43
		return pp;
52
	}
44
	}
53
 
45
 
54
	public ProductPojo getShortContent(String brand, String modelName, String modelNumber) {
46
	public ProductPojo getShortContent(String brand, String modelName, String modelNumber) {
55
		String name = getProductName(brand, modelName, modelNumber);
47
		String name = getProductName(brand, modelName, modelNumber);