| | |
| | | if (presist.getPayFeesStatus().equals("3")){ |
| | | throw new ServiceException("该账单已缴费完成"); |
| | | } |
| | | save.setBusinessDeptId(presist.getBusinessDeptId()); |
| | | |
| | | switch (type){ |
| | | // 仅更新除金额字段外的属性 |
| | | case 1: |
| | |
| | | .subtract(save.getPayFeesMoney()); |
| | | save.setOutstandingMoney(outstand); |
| | | //抵扣金额就是缴费金额 |
| | | save.setDeductionMoney(tBill.getPayableFeesMoney()); |
| | | save.setDeductionMoney(tBill.getPayFeesMoney()); |
| | | save.setPreOutstand(presist.getOutstandingMoney()); |
| | | if (outstand.compareTo(BigDecimal.ZERO)<=0){ |
| | | save.setPayFeesStatus("3"); |
| | |
| | | break; |
| | | |
| | | } |
| | | save.setBusinessDeptId(presist.getBusinessDeptId()); |
| | | updateById(save); |
| | | return save; |
| | | }finally { |
| | |
| | | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 根据发票编号查询账单列表 |
| | | * @param invoiceId |