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);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,12 +51,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
installment_history_detail a
|
||||
left join bank_card_lend bcl on
|
||||
bcl.id = a.bank_card_lend_id
|
||||
left join installment_history ih on ih.id=a.installment_history_id
|
||||
</sql>
|
||||
|
||||
<select id="selectInstallmentHistoryDetailList" parameterType="InstallmentHistoryDetailDto" resultMap="InstallmentHistoryDetailResult">
|
||||
<include refid="selectInstallmentHistoryDetailVo"/>
|
||||
<where>
|
||||
a.del_flag='0'
|
||||
a.del_flag='0' and ih.del_flag='0'
|
||||
<if test="installmentHistoryId != null "> and a.installment_history_id = #{installmentHistoryId}</if>
|
||||
<if test="bankCardLendId != null "> and a.bank_card_lend_id = #{bankCardLendId}</if>
|
||||
<if test="type != null and type != ''"> and a.type = #{type}</if>
|
||||
|
||||
@@ -239,4 +239,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
#{id}
|
||||
</foreach>
|
||||
</update>
|
||||
|
||||
<delete id="deleteInstallmentHistoryDetailByIds" parameterType="String">
|
||||
delete from installment_history_detail where installment_history_id in
|
||||
<foreach item="id" collection="array" open="(" separator="," close=")">
|
||||
#{id}
|
||||
</foreach>
|
||||
</delete>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user