|
|
|
@@ -15,6 +15,7 @@ import org.apache.commons.compress.utils.Lists; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
|
|
|
|
import java.math.BigDecimal; |
|
|
|
import java.math.RoundingMode; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
@@ -447,6 +448,12 @@ public class WxRentContract extends TenantEntity { |
|
|
|
// rentPrice = "0"; |
|
|
|
// } |
|
|
|
// } |
|
|
|
|
|
|
|
public void calcutePrice() { |
|
|
|
if (StringUtils.isNoneBlank(this.rentArea) && StringUtils.isNotBlank(this.rentPrice)) { |
|
|
|
this.price = new BigDecimal(this.rentArea).multiply(new BigDecimal(this.rentPrice)).setScale(this.decimalSize, RoundingMode.HALF_UP).toPlainString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@io.swagger.annotations.ApiModelProperty(value = "合同类型", name = "contractType") |
|
|
|
|