瀏覽代碼

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…
取消
儲存