提交 | 用户 | age
|
4df03d
|
1 |
<?xml version="1.0" encoding="UTF-8" ?> |
C |
2 |
<!DOCTYPE mapper |
|
3 |
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
|
4 |
"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|
5 |
<!-- namespace:该mapper.xml映射文件的 唯一标识 --> |
|
6 |
<mapper namespace="com.hx.phip.dao.mapper.RefundMapper"> |
|
7 |
|
510678
|
8 |
<!--一级支付方式记录返回-支付编号求和--> |
4df03d
|
9 |
<select id="selectConsumePayList" resultType="com.hx.phip.vo.order.payment.PayMethodVo"> |
C |
10 |
SELECT ANY_VALUE(name) AS name |
|
11 |
,numberNo |
ae6ff7
|
12 |
,ROUND(SUM(actualTotal-refundTotal),2) AS surplusTotal |
4df03d
|
13 |
,ROUND(SUM(actualTotal),2) AS payTotal |
C |
14 |
,ROUND(SUM(refundTotal),2) AS refundTotal |
|
15 |
FROM consume_pay |
ae6ff7
|
16 |
WHERE isDel = 0 AND orderId = #{orderId} GROUP BY numberNo |
4df03d
|
17 |
</select> |
C |
18 |
|
|
19 |
|
510678
|
20 |
<!--一级支付方式记录返回-支付编号求和--> |
4df03d
|
21 |
<select id="selectConsumePayOneList" resultType="com.hx.phip.vo.order.payment.PayMethodVo"> |
C |
22 |
SELECT ANY_VALUE(name) AS name |
|
23 |
,numberNo |
ae6ff7
|
24 |
,ROUND(SUM(actualTotal),2) AS surplusTotal |
4df03d
|
25 |
,ROUND(SUM(actualTotal),2) AS payTotal |
C |
26 |
FROM consume_pay_item |
ae6ff7
|
27 |
WHERE isDel = 0 AND typeId = #{typeId} GROUP BY numberNo |
4df03d
|
28 |
</select> |
C |
29 |
|
510678
|
30 |
<!--二级支付方式记录返回-支付编号求和--> |
4df03d
|
31 |
<select id="selectConsumePayTwoList" resultType="com.hx.phip.vo.order.payment.PayMethodVo" > |
C |
32 |
SELECT ANY_VALUE(name) AS name |
|
33 |
,numberNo |
ae6ff7
|
34 |
,ROUND(SUM(actualTotal),2) AS surplusTotal |
4df03d
|
35 |
,ROUND(SUM(actualTotal),2) AS payTotal |
C |
36 |
FROM consume_pay_item_son |
ae6ff7
|
37 |
WHERE isDel = 0 AND typeId = #{typeId} GROUP BY numberNo |
4df03d
|
38 |
</select> |
C |
39 |
|
|
40 |
|
|
41 |
</mapper> |