| | |
| | | tCheckAcceptRecord.setContractId(contract.getId()); |
| | | tCheckAcceptRecord.setHouseId(contract.getHouseId()); |
| | | tCheckAcceptRecord.setLeaseReason("后台终止合同"); |
| | | tCheckAcceptRecord.setStatus(false); |
| | | tCheckAcceptRecord.setAcceptanceTime(LocalDateTime.now()); |
| | | LocalDate now = LocalDate.now(); |
| | | String replace = (now + "").replace("-", ""); |
| | |
| | | tCheckAcceptRecord.setCode(replace.substring(2) + String.format("%03d", size + 1)); |
| | | |
| | | checkAcceptRecordMapper.insert(tCheckAcceptRecord); |
| | | // 将所有未缴费账单设置未已失效 |
| | | List<TBill> tBills = billService.list(new LambdaQueryWrapper<TBill>() |
| | | .ne(TBill::getPayFeesStatus, 3) |
| | | .eq(TBill::getContractId, contract.getId())); |
| | | for (TBill tBill : tBills) { |
| | | tBill.setPayFeesStatus("5"); |
| | | } |
| | | billService.updateBatchById(tBills); |
| | | |
| | | break; |
| | | } |
| | | default: |