2
0

feat: payment update

This commit is contained in:
zhangsz
2025-01-04 15:12:09 +08:00
parent 35889fe4f7
commit c454de459c
39 changed files with 1955 additions and 868 deletions

View File

@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.wfc.payment.ccpay.mapper.UCreditCardPaymentMapper">
<insert id="insertPayment" parameterType="org.wfc.payment.ccpay.model.UCreditCardPayment">
INSERT INTO u_credit_card_payment (transaction_id, user_id, order_id, amount, currency, status, payment_time, card_type, card_holder_name, billing_address, card_last_four, gateway_response)
VALUES (#{transactionId}, #{userId}, #{orderId}, #{amount}, #{currency}, #{status}, #{paymentTime}, #{cardType}, #{cardHolderName}, #{billingAddress}, #{cardLastFour}, #{gatewayResponse})
</insert>
<select id="selectPaymentById" parameterType="long" resultType="org.wfc.payment.ccpay.model.UCreditCardPayment">
SELECT * FROM u_credit_card_payment WHERE id = #{id}
</select>
<!-- 其他需要的 SQL 映射 -->
</mapper>