update 优化汇付结算账户一致性

This commit is contained in:
jsowell
2026-07-16 13:32:43 +08:00
parent b4731d3e85
commit 345a6efb37
10 changed files with 138 additions and 68 deletions

View File

@@ -583,12 +583,15 @@
and del_flag = '0'
</update>
<update id="clearSettleAccountByMerchantId">
<update id="clearCurrentSettleAccount">
update
adapay_member_account
set settle_account_id = null,
update_time = now()
where merchant_id = #{merchantId,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
and merchant_id = #{merchantId,jdbcType=VARCHAR}
and adapay_member_id = #{adapayMemberId,jdbcType=VARCHAR}
and settle_account_id = #{settleAccountId,jdbcType=VARCHAR}
and del_flag = '0'
</update>