|
|
|
@@ -468,7 +468,12 @@ public class WxRentContract extends TenantEntity { |
|
|
|
|
|
|
|
public String getPriceTwoDecimal() { |
|
|
|
if (StringUtils.isNotBlank(price)) { |
|
|
|
this.priceTwoDecimal = new BigDecimal(price).setScale(this.decimalSize, RoundingMode.HALF_UP).toPlainString(); |
|
|
|
if (null == decimalSize || decimalSize <= 0 ) { |
|
|
|
this.priceTwoDecimal = new BigDecimal(price).setScale(Constant.default_short_decimal_size, RoundingMode.HALF_UP).toPlainString(); |
|
|
|
}else { |
|
|
|
this.priceTwoDecimal = new BigDecimal(price).setScale(this.decimalSize, RoundingMode.HALF_UP).toPlainString(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return priceTwoDecimal; |
|
|
|
} |
|
|
|
|