fix: 用户发现问题修复。

This commit is contained in:
tianyongbao
2024-07-05 16:39:15 +08:00
parent 37d5291875
commit bebe583f10
5 changed files with 23 additions and 2 deletions

View File

@@ -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>

View File

@@ -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>