|
|
|
@ -64,8 +64,8 @@
|
|
|
|
|
<![CDATA[
|
|
|
|
|
SELECT ifnull(sum(if(l.transaction_type = 'Credit',l.clearing_amount,-l.clearing_amount)), 0)
|
|
|
|
|
FROM pmt_transactions l
|
|
|
|
|
INNER JOIN pmt_orders o ON o.order_id = l.order_id AND c.create_time >= #{begin} AND
|
|
|
|
|
c.create_time <= #{end}
|
|
|
|
|
INNER JOIN pmt_orders o ON o.order_id = l.order_id AND o.create_time >= #{begin} AND
|
|
|
|
|
o.create_time <= #{end}
|
|
|
|
|
WHERE (l.transaction_type = 'Credit' or l.refund_id is not null)
|
|
|
|
|
]]>
|
|
|
|
|
<if test="client_ids!=null">
|
|
|
|
@ -1081,4 +1081,4 @@
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</mapper>
|
|
|
|
|
</mapper>
|
|
|
|
|