Commit 0cd035a0 by 徐康

加料商品详情

parent 61c44d7d
...@@ -1873,15 +1873,21 @@ public class OrderAdapter { ...@@ -1873,15 +1873,21 @@ public class OrderAdapter {
String attr = ""; String attr = "";
for (OrderSpecialExtraAttrRequest special : extInfo.getSpecialAttrs()) { for (OrderSpecialExtraAttrRequest special : extInfo.getSpecialAttrs()) {
if(special.getAttributeName().indexOf("冰") >= 0) { if(special.getAttributeName().indexOf("冰") >= 0) {
attr += special.getAttributeName()+","; attr = special.getAttributeName();
break;
} }
} }
if(attr.length() > 0) { if(attr.length() > 0) {
attr = attr.substring(0, attr.length()-1);
productName += "("+attr+")"; productName += "("+attr+")";
} }
} }
if(CollectionUtils.isNotEmpty(productBean.getMaterialProduct())) {
for (QueryOrdersResponse.DataBean.OrderBean.ProductBean material : productBean.getMaterialProduct()) {
productName += "/"+material.getSpecificationName();
}
}
productVo.setName(productName); productVo.setName(productName);
productVo.setSpuName(productBean.getProductName()); productVo.setSpuName(productBean.getProductName());
productVo.setPicture(productBean.getPicture()); productVo.setPicture(productBean.getPicture());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment