fix: 用户发现问题修复。
This commit is contained in:
@@ -79,4 +79,12 @@ public interface InstallmentHistoryMapper
|
||||
* @return 结果
|
||||
*/
|
||||
public int removeInstallmentHistoryByIds(Long[] ids);
|
||||
|
||||
/**
|
||||
* 批量删除网贷及分期历史
|
||||
*
|
||||
* @param ids 需要删除的数据主键集合
|
||||
* @return 结果
|
||||
*/
|
||||
public int deleteInstallmentHistoryDetailByIds(Long[] ids);
|
||||
}
|
||||
|
||||
@@ -531,7 +531,10 @@ public class AccountsTransferRecordServiceImpl implements IAccountsTransferRecor
|
||||
//储蓄卡
|
||||
BankCardLendVo debitCardVo=bankCardLendMapper.selectBankCardLendById(accountsTransferRecord.getInAccountId());
|
||||
|
||||
//实际入账金额
|
||||
//如果是借款,利息为0,
|
||||
if(accountsTransferRecord.getCommission()==null){
|
||||
accountsTransferRecord.setCommission(0D);
|
||||
}
|
||||
accountsTransferRecord.setActualAmount(accountsTransferRecord.getAmount()+accountsTransferRecord.getCommission());
|
||||
//借贷余额计算
|
||||
AccountsVo lendAccount=accountsMapper.selectAccountsById(lendVo.getId());
|
||||
|
||||
@@ -235,6 +235,8 @@ public class InstallmentHistoryServiceImpl implements IInstallmentHistoryService
|
||||
@Override
|
||||
public int deleteInstallmentHistoryByIds(Long[] ids)
|
||||
{
|
||||
//先删除明细,再删除主表
|
||||
installmentHistoryMapper.deleteInstallmentHistoryDetailByIds(ids);
|
||||
return installmentHistoryMapper.removeInstallmentHistoryByIds(ids);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user