未获取到支付记录

This commit is contained in:
2025-09-29 16:20:58 +08:00
parent 4f0e0acacb
commit 7487e028b0
5 changed files with 45 additions and 32 deletions

View File

@@ -34,6 +34,14 @@
update tb_order_info set origin_amount = origin_amount-#{amount}, update_time=now() where id=#{id} and origin_amount-#{amount} >= 0;
</update>
<update id="updatePayOrderId">
update tb_order_info
set pay_order_id = #{payOrderId},
pay_type = #{payType},
update_time=now()
where id = #{orderId};
</update>
<select id="getHandoverCashAmount" resultType="java.math.BigDecimal">
SELECT
ifnull(sum(t1.pay_amount),0)