计算余额扣除金额

This commit is contained in:
2023-08-11 11:04:28 +08:00
parent 174c1a7ce8
commit 6a2ea94ba4
7 changed files with 102 additions and 15 deletions

View File

@@ -470,4 +470,14 @@
where del_flag = '0'
and payment_id = #{paymentId,jdbcType=VARCHAR}
</select>
<select id="selectAvailableBalance" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from member_adapay_record
where del_flag = '0'
and scenario_type = 'balance'
and balance_amt > '0.00'
and member_id = #{memberId,jdbcType=VARCHAR}
</select>
</mapper>