|
@@ -49,7 +49,7 @@
|
49
|
49
|
<if test="miniAppName != null and miniAppName != ''">
|
50
|
50
|
and b.name like concat('%', #{miniAppName}, '%')
|
51
|
51
|
</if>
|
52
|
|
- group by t.order_id
|
|
52
|
+ group by t.order_id order by t.create_date desc
|
53
|
53
|
</select>
|
54
|
54
|
|
55
|
55
|
<select id="orderListByConsume" resultType="com.huiju.estateagents.redpack.entity.TaOrgOrder">
|
|
@@ -97,17 +97,17 @@
|
97
|
97
|
<if test="miniAppName != null and miniAppName != ''">
|
98
|
98
|
and b.name like concat('%', #{miniAppName}, '%')
|
99
|
99
|
</if>
|
100
|
|
- GROUP BY t.order_id
|
|
100
|
+ GROUP BY t.order_id order by t.create_date desc
|
101
|
101
|
</select>
|
102
|
102
|
|
103
|
103
|
<select id="orderListByRechargeOrRefundExport" resultType="com.huiju.estateagents.redpack.entity.RechargeOrder">
|
104
|
104
|
select
|
105
|
105
|
t.trade_no as tradeNo,
|
106
|
|
- t.amount as amount,
|
|
106
|
+ FORMAT(t.amount/100, 2) as amount,
|
107
|
107
|
b.name as miniAppName,
|
108
|
108
|
if(t.is_offline = 1, '业务线上充值', '运营手工充值') as isOffline,
|
109
|
109
|
t.create_date as createDate,
|
110
|
|
- if(t.trading_status = 'processing', '进行中', if(t.trading_status = 'success', '已支付','已超时')) as tradingStatus,
|
|
110
|
+ if(t.trading_status = 'processing', '待支付', if(t.trading_status = 'success', '已支付','已超时')) as tradingStatus,
|
111
|
111
|
t.pay_date as payDate
|
112
|
112
|
From ta_org_order t
|
113
|
113
|
left join ta_org_order_detail a on t.order_id = a.order_id
|
|
@@ -132,14 +132,14 @@
|
132
|
132
|
<if test="miniAppName != null and miniAppName != ''">
|
133
|
133
|
and b.name like concat('%', #{miniAppName}, '%')
|
134
|
134
|
</if>
|
135
|
|
- GROUP BY t.order_id
|
|
135
|
+ GROUP BY t.order_id order by t.create_date desc
|
136
|
136
|
</select>
|
137
|
137
|
|
138
|
138
|
<select id="orderListByConsumeExport" resultType="com.huiju.estateagents.redpack.entity.ConsumeOrder">
|
139
|
139
|
select
|
140
|
140
|
t.trade_no as tradeNo,
|
141
|
141
|
b.name as miniAppName,
|
142
|
|
- t.amount as amount,
|
|
142
|
+ FORMAT(t.amount/100, 2) as amount,
|
143
|
143
|
t.create_date as createDate,
|
144
|
144
|
c.phone as phone,
|
145
|
145
|
if(t.trading_status = 'success', '成功','失败') as tradingStatus,
|
|
@@ -170,7 +170,7 @@
|
170
|
170
|
<if test="miniAppName != null and miniAppName != ''">
|
171
|
171
|
and b.name like concat('%', #{miniAppName}, '%')
|
172
|
172
|
</if>
|
173
|
|
- GROUP BY t.order_id
|
|
173
|
+ GROUP BY t.order_id order by t.create_date desc
|
174
|
174
|
</select>
|
175
|
175
|
|
176
|
176
|
<select id="listCzOrderByCondition" resultType="com.huiju.estateagents.redpack.entity.TaOrgOrder">
|
|
@@ -320,7 +320,7 @@
|
320
|
320
|
<select id="countTotalRechargeAmount" resultType="java.lang.Integer">
|
321
|
321
|
select ifnull(sum(t.amount),0) as amount from ta_org_order t
|
322
|
322
|
left join ta_org_order_detail a on t.order_id = a.order_id where t.org_id = #{orgId}
|
323
|
|
- and a.item_type = 'recharge'
|
|
323
|
+ and a.item_type = 'recharge' and t.trading_status = 'success'
|
324
|
324
|
</select>
|
325
|
325
|
|
326
|
326
|
<select id="listRedPacketRecords" resultType="com.huiju.estateagents.redpack.entity.TaOrgOrder">
|
|
@@ -467,7 +467,7 @@
|
467
|
467
|
<select id="orderListByRefundExport" resultType="com.huiju.estateagents.redpack.entity.RefundOrder">
|
468
|
468
|
select
|
469
|
469
|
t.trade_no as tradeNo,
|
470
|
|
- t.amount as amount,
|
|
470
|
+ FORMAT(t.amount/100, 2) as amount,
|
471
|
471
|
b.name as miniAppName,
|
472
|
472
|
t.create_date as createDate,
|
473
|
473
|
d.audit_result as auditResult,
|
|
@@ -491,7 +491,7 @@
|
491
|
491
|
<if test="miniAppName != null and miniAppName != ''">
|
492
|
492
|
and b.name like concat('%', #{miniAppName}, '%')
|
493
|
493
|
</if>
|
494
|
|
- GROUP BY t.order_id
|
|
494
|
+ GROUP BY t.order_id order by t.create_date desc
|
495
|
495
|
</select>
|
496
|
496
|
|
497
|
497
|
<select id = "getRedPacketSendInfo" resultType="map">
|