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