|
|
|
@@ -259,11 +259,7 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
BigDecimal revenue = new BigDecimal(revenueLong == null ? 0 : revenueLong).divide(hundred); |
|
|
|
BigDecimal payRatio = new BigDecimal(ratio == null ? 0 : ratio).divide(new BigDecimal(10000)); |
|
|
|
BigDecimal price; |
|
|
|
if(EnumMissTimeType.YEAR.getCode().equals(timeType)){ |
|
|
|
price = revenue.multiply(payRatio).divide(new BigDecimal(12),2, RoundingMode.HALF_EVEN); |
|
|
|
}else{ |
|
|
|
price = revenue.multiply(payRatio).setScale(2, RoundingMode.HALF_EVEN); |
|
|
|
} |
|
|
|
price = revenue.multiply(payRatio).setScale(2, RoundingMode.HALF_EVEN); |
|
|
|
return price.multiply(hundred).longValue(); |
|
|
|
} |
|
|
|
|
|
|
|
|