Просмотр исходного кода

[合同][修改][开发账单结算]

release_toaliyun_real
luozukai 6 лет назад
Родитель
Сommit
930516225f
1 измененных файлов: 1 добавлений и 5 удалений
  1. +1
    -5
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 1
- 5
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Просмотреть файл

@@ -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();
}



Загрузка…
Отмена
Сохранить