Merge branch 'dev/dev_xp' into dev/dev
This commit is contained in:
@@ -163,4 +163,15 @@
|
||||
AND TRIM(country) != ''
|
||||
</select>
|
||||
|
||||
<insert id="insertIgnore" parameterType="com.ai.da.mapper.primary.entity.PaymentInfo">
|
||||
INSERT IGNORE INTO
|
||||
t_payment_info (order_no, transaction_id, payment_type, trade_state, payer_total,
|
||||
type, content, notified, payment_method, last4, hosted_invoice_url,
|
||||
country, city, ip_address, create_time)
|
||||
VALUES (#{paymentInfo.orderNo}, #{paymentInfo.transactionId}, #{paymentInfo.paymentType},
|
||||
#{paymentInfo.tradeState}, #{paymentInfo.payerTotal}, #{paymentInfo.content},#{paymentInfo.type},
|
||||
#{paymentInfo.notified},#{paymentInfo.paymentMethod}, #{paymentInfo.last4},#{paymentInfo.hostedInvoiceUrl},
|
||||
#{paymentInfo.ipAddress},#{paymentInfo.country},#{paymentInfo.city},#{paymentInfo.createTime});
|
||||
</insert>
|
||||
|
||||
</mapper>
|
||||
|
||||
13
src/main/resources/mapper/primary/SubscriptionInfoMapper.xml
Normal file
13
src/main/resources/mapper/primary/SubscriptionInfoMapper.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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="com.ai.da.mapper.primary.SubscriptionInfoMapper">
|
||||
<insert id="insertIgnore" parameterType="com.ai.da.mapper.primary.entity.SubscriptionInfo">
|
||||
INSERT IGNORE INTO
|
||||
t_subscription_info (account_id, order_no, subscription_id, type, status, cancel_notified,
|
||||
next_pay_date, current_period_start, current_period_end, create_time)
|
||||
VALUES (#{subscriptionInfo.accountId}, #{subscriptionInfo.orderNo}, #{subscriptionInfo.subscriptionId},
|
||||
#{subscriptionInfo.type}, #{subscriptionInfo.status}, #{subscriptionInfo.cancelNotified},
|
||||
#{subscriptionInfo.nextPayDate}, #{subscriptionInfo.currentPeriodStart},
|
||||
#{subscriptionInfo.currentPeriodEnd}, #{subscriptionInfo.createTime});
|
||||
</insert>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user