|
|
@ -292,6 +292,7 @@
|
|
|
|
<if test="!gateway">
|
|
|
|
<if test="!gateway">
|
|
|
|
<include refid="tradelog_list_keys"/>
|
|
|
|
<include refid="tradelog_list_keys"/>
|
|
|
|
</if>
|
|
|
|
</if>
|
|
|
|
|
|
|
|
,ifnull(sci.incremental_rate_value,0) as rate_value
|
|
|
|
FROM (
|
|
|
|
FROM (
|
|
|
|
select oo.order_id,oo.client_id,oo.total_amount,oo.display_amount,
|
|
|
|
select oo.order_id,oo.client_id,oo.total_amount,oo.display_amount,
|
|
|
|
oo.customer_payment_amount,oo.coupon_payment_amount,oo.currency,
|
|
|
|
oo.customer_payment_amount,oo.coupon_payment_amount,oo.currency,
|
|
|
@ -366,6 +367,7 @@
|
|
|
|
ON t.order_id = o.order_id
|
|
|
|
ON t.order_id = o.order_id
|
|
|
|
AND t.refund_id IS NULL
|
|
|
|
AND t.refund_id IS NULL
|
|
|
|
AND t.transaction_type = 'Credit'
|
|
|
|
AND t.transaction_type = 'Credit'
|
|
|
|
|
|
|
|
LEFT JOIN sys_client_incremental sci on sci.client_id = o.client_id
|
|
|
|
<where>
|
|
|
|
<where>
|
|
|
|
<if test="search_text != null">
|
|
|
|
<if test="search_text != null">
|
|
|
|
<bind name="name_pattern" value="'%' + search_text + '%'"/>
|
|
|
|
<bind name="name_pattern" value="'%' + search_text + '%'"/>
|
|
|
|