Showing
1 changed file
with
5 additions
and
2 deletions
@@ -105,8 +105,11 @@ public final class SellerGoodsHelper { | @@ -105,8 +105,11 @@ public final class SellerGoodsHelper { | ||
105 | } | 105 | } |
106 | 106 | ||
107 | 107 | ||
108 | - public static String appendSizeCNUnit(String sizeName){ | ||
109 | - if (StringUtils.isBlank(sizeName)){ | 108 | + public static String appendSizeCNUnit(String sizeName) { |
109 | + if (StringUtils.isBlank(sizeName)) { | ||
110 | + return sizeName; | ||
111 | + } | ||
112 | + if (StringUtils.contains(sizeName, "码")) { | ||
110 | return sizeName; | 113 | return sizeName; |
111 | } | 114 | } |
112 | return new StringBuilder(sizeName).append("码").toString(); | 115 | return new StringBuilder(sizeName).append("码").toString(); |
-
Please register or login to post a comment