fix: 工行job余额计算问题修复。
This commit is contained in:
@@ -210,12 +210,13 @@ public class InvestJobImpl implements IInvestJobService
|
|||||||
installmentHistoryMapper.updateInstallmentHistory(his);
|
installmentHistoryMapper.updateInstallmentHistory(his);
|
||||||
//信用卡账户余额计算
|
//信用卡账户余额计算
|
||||||
AccountsVo creditAccount=accountsMapper.selectAccountsById(installmentHistoryDetail.getBankCardLendId());
|
AccountsVo creditAccount=accountsMapper.selectAccountsById(installmentHistoryDetail.getBankCardLendId());
|
||||||
creditAccount.setBalance(creditAccount.getBalance()-installmentHistoryDetail.getInterest());
|
//工行提前将利息额度占用,余额不再重新计算。
|
||||||
creditAccount.setAvailableLimit(creditAccount.getBalance()+creditAccount.getCreditLimit());
|
if(!creditAccount.getName().contains("工商银行")){
|
||||||
|
creditAccount.setBalance(creditAccount.getBalance()-installmentHistoryDetail.getInterest());
|
||||||
|
creditAccount.setAvailableLimit(creditAccount.getBalance()+creditAccount.getCreditLimit());
|
||||||
|
}
|
||||||
creditAccount.setUpdateTime(installmentHistoryDetail.getUpdateTime());
|
creditAccount.setUpdateTime(installmentHistoryDetail.getUpdateTime());
|
||||||
accountsMapper.updateAccounts(creditAccount);
|
accountsMapper.updateAccounts(creditAccount);
|
||||||
//工行提前将利息额度占用,不再生成利息支出,一次性生成利息支出即可。
|
|
||||||
if(!creditAccount.getName().contains("工商银行")){
|
|
||||||
//信用卡消费记录明细
|
//信用卡消费记录明细
|
||||||
AccountsDealRecord creditDeal=new AccountsDealRecord();
|
AccountsDealRecord creditDeal=new AccountsDealRecord();
|
||||||
creditDeal.setTransferRecordId(installmentHistoryDetail.getId());
|
creditDeal.setTransferRecordId(installmentHistoryDetail.getId());
|
||||||
@@ -237,7 +238,6 @@ public class InvestJobImpl implements IInvestJobService
|
|||||||
creditDeal.setCreateTime(new Date());
|
creditDeal.setCreateTime(new Date());
|
||||||
// accountsDealRecordMapper.insertAccountsDealRecord(creditDeal);
|
// accountsDealRecordMapper.insertAccountsDealRecord(creditDeal);
|
||||||
insertAccountsDealRecord(creditDeal);
|
insertAccountsDealRecord(creditDeal);
|
||||||
}
|
|
||||||
//信用卡消费记录明细,应还本金
|
//信用卡消费记录明细,应还本金
|
||||||
AccountsDealRecord creditDealPrinciple=new AccountsDealRecord();
|
AccountsDealRecord creditDealPrinciple=new AccountsDealRecord();
|
||||||
creditDealPrinciple.setTransferRecordId(installmentHistoryDetail.getId());
|
creditDealPrinciple.setTransferRecordId(installmentHistoryDetail.getId());
|
||||||
|
|||||||
Reference in New Issue
Block a user