15 lines
969 B
XML
15 lines
969 B
XML
<?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> |