Authored by chenchao

fix bug

@@ -70,14 +70,14 @@ public class SecondhandProductServiceImpl implements SecondhandProductService { @@ -70,14 +70,14 @@ public class SecondhandProductServiceImpl implements SecondhandProductService {
70 if(num == 0) { 70 if(num == 0) {
71 return num; 71 return num;
72 } 72 }
73 -  
74 - List<Integer> qualityFlawIdList = flawImageList.stream().map(SecondhandImagesBo::getCode).collect(Collectors.toList());  
75 -  
76 - SecondhandInfo record = new SecondhandInfo();  
77 - record.setSkup(skup);  
78 - if(CollectionUtils.isNotEmpty(qualityFlawIdList)) {  
79 - flawId += "," + StringUtils.join(qualityFlawIdList, ",");  
80 - } 73 + if(CollectionUtils.isNotEmpty(flawImageList)) {
  74 + List<Integer> qualityFlawIdList = flawImageList.stream().map(SecondhandImagesBo::getCode).collect(Collectors.toList());
  75 + if (CollectionUtils.isNotEmpty(qualityFlawIdList)) {
  76 + flawId += "," + StringUtils.join(qualityFlawIdList, ",");
  77 + }
  78 + }
  79 + SecondhandInfo record = new SecondhandInfo();
  80 + record.setSkup(skup);
81 record.setFlawId(flawId); 81 record.setFlawId(flawId);
82 record.setFlawAttr(flawAttr); 82 record.setFlawAttr(flawAttr);
83 record.setDescribeInfo(describeInfo); 83 record.setDescribeInfo(describeInfo);