|
|
|
@@ -128,23 +128,20 @@ public class WxBillDepositServiceImpl implements WxBillDepositService { |
|
|
|
return new ResultData(ErrorCode.BILL_RENT_DEPOSIT_IS_NOT_FOUND); |
|
|
|
} |
|
|
|
Long addpay = wxBillDeposit.getPay(); |
|
|
|
wxBillDeposit.setPayDate(record.getPayDate()); |
|
|
|
wxBillDeposit.setPay(record.getPay()); |
|
|
|
wxBillDeposit.setReceivePay(record.getReceivePay()); |
|
|
|
wxBillDeposit.setOwe(record.getReceivePay()-record.getPay()); |
|
|
|
if (record.getPay().equals(record.getReceivePay())) { |
|
|
|
wxBillDeposit.setStatus(EnumBillRentStatus.PAID.getCode()); |
|
|
|
Date payDate = record.getPayDate(); |
|
|
|
Date receiveDate = wxBillDeposit.getReceiveDate(); |
|
|
|
wxBillDeposit.setExpiredDay(0L); |
|
|
|
if (payDate.after(receiveDate)) { |
|
|
|
int expiredDay = DateUtils.daysBetween(receiveDate, payDate); |
|
|
|
if (date.after(receiveDate)) { |
|
|
|
int expiredDay = DateUtils.daysBetween(receiveDate, date); |
|
|
|
wxBillDeposit.setExpiredDay((long) expiredDay); |
|
|
|
} |
|
|
|
} |
|
|
|
wxBillDeposit.setPayDate(record.getPayDate()); |
|
|
|
wxBillDeposit.setPayDate(date); |
|
|
|
wxBillDeposit.setUpdatetime(date); |
|
|
|
wxBillDeposit.setUpdatetime(new Date()); |
|
|
|
wxBillDeposit.setPayWay(record.getPayWay()); |
|
|
|
try { |
|
|
|
wxBillDepositMapper.updateByPrimaryKeySelective(wxBillDeposit); |
|
|
|
|