|
|
|
@ -77,6 +77,7 @@
|
|
|
|
|
confirm_time confirm_time,
|
|
|
|
|
operator_name operator_name,
|
|
|
|
|
`status` `status` ,
|
|
|
|
|
amount amount,
|
|
|
|
|
1 type
|
|
|
|
|
FROM
|
|
|
|
|
pmt_refunds
|
|
|
|
@ -85,10 +86,10 @@
|
|
|
|
|
and client_id = #{client_id}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="start_time!=null">
|
|
|
|
|
and create_time <= #{start_time}
|
|
|
|
|
and create_time >= #{start_time}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="start_time!=null">
|
|
|
|
|
and create_time >= #{end_time}
|
|
|
|
|
and create_time <= #{end_time}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="client_ids!=null">
|
|
|
|
|
client_id in
|
|
|
|
@ -99,27 +100,28 @@
|
|
|
|
|
</where>
|
|
|
|
|
UNION ALL
|
|
|
|
|
SELECT
|
|
|
|
|
order_id order_id,
|
|
|
|
|
client_id client_id,
|
|
|
|
|
applytime create_time,
|
|
|
|
|
audittime confirm_time,
|
|
|
|
|
auditorname operator_name,
|
|
|
|
|
audit_result `status` ,
|
|
|
|
|
ra.order_id order_id,
|
|
|
|
|
ra.client_id client_id,
|
|
|
|
|
ra.applytime create_time,
|
|
|
|
|
ra.audittime confirm_time,
|
|
|
|
|
ra.auditorname operator_name,
|
|
|
|
|
ra.audit_result `status` ,
|
|
|
|
|
r.amount amount,
|
|
|
|
|
2 type
|
|
|
|
|
FROM
|
|
|
|
|
pmt_refund_applies
|
|
|
|
|
pmt_refund_applies ra left join pmt_refunds r on ra.refund_id = r.refund_id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="client_id!=null">
|
|
|
|
|
and client_id = #{client_id}
|
|
|
|
|
and ra.client_id = #{client_id}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="start_time!=null">
|
|
|
|
|
and applytime <= #{start_time}
|
|
|
|
|
and ra.applytime >= #{start_time}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="start_time!=null">
|
|
|
|
|
and applytime >= #{end_time}
|
|
|
|
|
and ra.applytime <= #{end_time}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="client_ids!=null">
|
|
|
|
|
client_id in
|
|
|
|
|
ra.client_id in
|
|
|
|
|
<foreach collection="client_ids" open="(" close=")" separator="," item="item">
|
|
|
|
|
#{item}
|
|
|
|
|
</foreach>
|
|
|
|
|