|
|
@ -277,7 +277,7 @@ public class GrassrootsPartyDevServiceImpl implements GrassrootsPartyDevService |
|
|
|
|
|
|
|
|
|
|
|
private String convertPercentStr(BigDecimal percent){ |
|
|
|
if(null == percent || BigDecimal.ZERO == percent) return "0.00%"; |
|
|
|
if (null == percent || BigDecimal.ZERO.equals(percent)) return "0.00%"; |
|
|
|
String percentStr = percent.setScale(NumConstant.TWO, BigDecimal.ROUND_HALF_UP).stripTrailingZeros().toPlainString(); |
|
|
|
return percentStr.concat(ModuleConstant.SYMBOL_PERCENT); |
|
|
|
} |
|
|
|