fix : format null 2 number
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -146,6 +146,9 @@ public class SellerOrderViewService { | @@ -146,6 +146,9 @@ public class SellerOrderViewService { | ||
146 | } | 146 | } |
147 | 147 | ||
148 | String buildLeastPriceTips(BigDecimal leastPrice, SkupType skupType){ | 148 | String buildLeastPriceTips(BigDecimal leastPrice, SkupType skupType){ |
149 | + if(leastPrice == null){ | ||
150 | + return null; | ||
151 | + } | ||
149 | String prefix = buildLeastPriceTipsPrefix(skupType); | 152 | String prefix = buildLeastPriceTipsPrefix(skupType); |
150 | return prefix==null ? null : prefix + "¥" + BigDecimalHelper.formatNumber(leastPrice, BigDecimalHelper.FORMAT_NOPOINT); | 153 | return prefix==null ? null : prefix + "¥" + BigDecimalHelper.formatNumber(leastPrice, BigDecimalHelper.FORMAT_NOPOINT); |
151 | } | 154 | } |
-
Please register or login to post a comment