Authored by Lixiaodi

商品质量没有问题,展示默认值

@@ -1390,12 +1390,16 @@ public class ProductServiceImpl implements ProductService { @@ -1390,12 +1390,16 @@ public class ProductServiceImpl implements ProductService {
1390 qualityInfo.append(",").append(flaw.getName()); 1390 qualityInfo.append(",").append(flaw.getName());
1391 } 1391 }
1392 } 1392 }
1393 - qualityInfo.append(",").append(secondhandInfo.getFlawAttr()); 1393 + if(StringUtils.isNotBlank(secondhandInfo.getFlawAttr())) {
  1394 + qualityInfo.append(",").append(secondhandInfo.getFlawAttr());
  1395 + }
1394 if (boxInfo.length() > 0) { 1396 if (boxInfo.length() > 0) {
1395 resp.setShoeBoxDesc(boxInfo.substring(1)); 1397 resp.setShoeBoxDesc(boxInfo.substring(1));
1396 } 1398 }
1397 if (qualityInfo.length() > 0) { 1399 if (qualityInfo.length() > 0) {
1398 resp.setShoeQualityDesc(qualityInfo.substring(1)); 1400 resp.setShoeQualityDesc(qualityInfo.substring(1));
  1401 + } else {
  1402 + resp.setShoeQualityDesc("该商品没有明显瑕疵");
1399 } 1403 }
1400 } 1404 }
1401 1405