Commit d8cc819f by 徐康

判断字段是否为空

parent 546d3255
...@@ -2080,11 +2080,11 @@ public class OrderAdapter { ...@@ -2080,11 +2080,11 @@ public class OrderAdapter {
break; break;
} }
} }
if(attr.length() > 0) { if(StringUtils.isNotBlank(attr)) {
productName += "("+attr+")"; productName += "("+attr+")";
} }
//英文名处理 //英文名处理
if(attrEng.length() > 0) { if(StringUtils.isNotBlank(attrEng)) {
foreignProductName += "("+attrEng+")"; foreignProductName += "("+attrEng+")";
} }
} }
......
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