添加Affiliate功能
This commit is contained in:
@@ -20,7 +20,7 @@ spring.security.jwtExpiration=8640000000
|
||||
spring.security.ignorePaths=/,/favicon.ico,/doc.html,/webjars/**,/swagger-resources,/v2/api-docs,\
|
||||
/api/account/**,/api/element/**,/api/python/**,/api/design/**,/api/history/**,/api/library/**,/api/third/party/**,/api/generate/**,/api/workspace/**,/api/classification/**,\
|
||||
/api/product/**,/api/ali-pay/**,/api/order-info/**,/api/paypal/**,/api/credits/**,/api/inquiry/**,/api/tasks/**,/api/python/prepareForSR,/api/alipay-hk/**,/api/portfolio/**,\
|
||||
/api/stripe/**,/api/message/**,/notification/**
|
||||
/api/stripe/**,/api/message/**,/notification/**,/api/affiliate/**
|
||||
spring.security.authApi=/auth/login
|
||||
|
||||
|
||||
|
||||
42
src/main/resources/mapper/primary/PaymentInfoMapper.xml
Normal file
42
src/main/resources/mapper/primary/PaymentInfoMapper.xml
Normal file
@@ -0,0 +1,42 @@
|
||||
<?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.PaymentInfoMapper">
|
||||
<select id="selectPageOrderList" resultType="com.ai.da.model.vo.OrderListVO">
|
||||
SELECT
|
||||
p.id AS id,
|
||||
p.payer_total AS amount,
|
||||
p.payment_type AS paymentMethod,
|
||||
p.trade_state AS state,
|
||||
o.title AS orderType,
|
||||
p.hosted_invoice_url AS invoiceLink,
|
||||
p.create_time
|
||||
FROM
|
||||
`t_payment_info` p
|
||||
LEFT JOIN
|
||||
`t_order_info` o
|
||||
ON
|
||||
p.order_no = o.order_no
|
||||
WHERE
|
||||
o.account_id = #{accountId}
|
||||
AND p.create_time BETWEEN #{startTime} AND #{endTime}
|
||||
ORDER BY
|
||||
p.id DESC
|
||||
LIMIT #{pageSize} OFFSET #{offset};
|
||||
</select>
|
||||
|
||||
<select id="queryOrderListTotalCount" parameterType="map" resultType="int">
|
||||
SELECT
|
||||
COUNT(*)
|
||||
FROM
|
||||
`t_payment_info` p
|
||||
LEFT JOIN
|
||||
`t_order_info` o
|
||||
ON
|
||||
p.order_no = o.order_no
|
||||
WHERE
|
||||
o.account_id = #{accountId}
|
||||
AND p.create_time BETWEEN #{startTime} AND #{endTime};
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user