|
|
|
@ -738,5 +738,24 @@
|
|
|
|
|
<if test="clearing_status!=null">and t.clearing_status=#{clearing_status}</if>
|
|
|
|
|
</where>
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="listHalloweenActOrder" resultType="com.alibaba.fastjson.JSONObject">
|
|
|
|
|
<![CDATA[
|
|
|
|
|
SELECT
|
|
|
|
|
o.order_id order_id,
|
|
|
|
|
o.currency,
|
|
|
|
|
o.channel,
|
|
|
|
|
o.customer_id
|
|
|
|
|
format(t.clearing_amount,2) clearing_amount
|
|
|
|
|
FROM pmt_orders o
|
|
|
|
|
LEFT JOIN pmt_transactions t
|
|
|
|
|
ON t.order_id = o.order_id
|
|
|
|
|
AND t.refund_id IS NULL
|
|
|
|
|
AND t.transaction_type = 'Credit'
|
|
|
|
|
AND t.channel != 'System'
|
|
|
|
|
and o.transaction_date = #{transaction_date}
|
|
|
|
|
and o.status = #{status}
|
|
|
|
|
and o.customer_id = #{customer_id}
|
|
|
|
|
and t.clearing_amount >= 1.99
|
|
|
|
|
]]>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|