Authored by Lixiaodi

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

... ... @@ -1390,12 +1390,16 @@ public class ProductServiceImpl implements ProductService {
qualityInfo.append(",").append(flaw.getName());
}
}
qualityInfo.append(",").append(secondhandInfo.getFlawAttr());
if(StringUtils.isNotBlank(secondhandInfo.getFlawAttr())) {
qualityInfo.append(",").append(secondhandInfo.getFlawAttr());
}
if (boxInfo.length() > 0) {
resp.setShoeBoxDesc(boxInfo.substring(1));
}
if (qualityInfo.length() > 0) {
resp.setShoeQualityDesc(qualityInfo.substring(1));
} else {
resp.setShoeQualityDesc("该商品没有明显瑕疵");
}
}
... ...