Преглед изворни кода

fix bug

release_toaliyun_real
zhengfangyuan пре 3 година
родитељ
комит
8f94ad23f2
1 измењених фајлова са 5 додато и 2 уклоњено
  1. +5
    -2
      mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java

+ 5
- 2
mallinkService/src/main/java/com/iformall/service/impl/WxRentContractServiceImpl.java Прегледај датотеку

@@ -1614,7 +1614,10 @@ public class WxRentContractServiceImpl implements WxRentContractService {
}
//如果当月费用需要按天计算
if (monthCalDay) {
needpay = new Double(getMonthNeedPay(priceD, startDate, endDate,dayType,receivePeriod,false)).longValue();
//取整
//needpay = new Double(getMonthNeedPay(priceD, startDate, endDate,dayType,receivePeriod,false)).longValue();
//四舍五入
needpay = new BigDecimal(getMonthNeedPay(priceD, startDate, endDate,dayType,receivePeriod,false)).setScale(0, BigDecimal.ROUND_HALF_UP).longValue();
}else {
needpay = new Double(months * priceD).longValue();
}
@@ -1622,7 +1625,7 @@ public class WxRentContractServiceImpl implements WxRentContractService {
}
return needpay;
}
public void setExpiredDay(WxBillRent wxBillRent,int dayType, int receivePeriod){
//截止收租日在当前时间之前
Date date = new Date();


Loading…
Откажи
Сачувај