|
|
|
@ -156,6 +156,30 @@
|
|
|
|
|
left join sys_customer_relation_alipay ra on ra.alipay_uid = o.customer_id
|
|
|
|
|
LEFT JOIN sys_clients c on c.client_id = t.client_id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="search_text!=null">
|
|
|
|
|
<bind name="name_pattern" value="'%'+search_text+'%'"/>
|
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
|
and (o.order_detail like
|
|
|
|
|
#{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or
|
|
|
|
|
t.order_id = #{name_pattern}
|
|
|
|
|
or o.client_order_id = #{name_pattern})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='sys_trans_id'">
|
|
|
|
|
and t.system_transaction_id =#{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='channel'">
|
|
|
|
|
and o.channel = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
|
and o.order_detail like #{name_pattern}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='order_id'">
|
|
|
|
|
and t.order_id = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='client_order_id'">
|
|
|
|
|
and o.client_order_id = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="!hide_sub_mch and client_ids!=null">
|
|
|
|
|
AND t.client_id IN
|
|
|
|
|
<foreach collection="client_ids" open="(" close=")" separator="," item="client_id">
|
|
|
|
@ -231,6 +255,30 @@
|
|
|
|
|
left JOIN pmt_orders o on o.order_id=t.order_id
|
|
|
|
|
LEFT JOIN sys_clients c on c.client_id = t.client_id
|
|
|
|
|
<where>
|
|
|
|
|
<if test="search_text!=null">
|
|
|
|
|
<bind name="name_pattern" value="'%'+search_text+'%'"/>
|
|
|
|
|
<if test="text_type=='all'">
|
|
|
|
|
and (o.order_detail like
|
|
|
|
|
#{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or
|
|
|
|
|
t.order_id = #{name_pattern}
|
|
|
|
|
or o.client_order_id = #{name_pattern})
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='sys_trans_id'">
|
|
|
|
|
and t.system_transaction_id =#{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='channel'">
|
|
|
|
|
and o.channel = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='remark'">
|
|
|
|
|
and o.order_detail like #{name_pattern}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='order_id'">
|
|
|
|
|
and t.order_id = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
<if test="text_type=='client_order_id'">
|
|
|
|
|
and o.client_order_id = #{search_text}
|
|
|
|
|
</if>
|
|
|
|
|
</if>
|
|
|
|
|
<if test="client_ids!=null">
|
|
|
|
|
AND t.client_id IN
|
|
|
|
|
<foreach collection="client_ids" open="(" close=")" separator="," item="client_id">
|
|
|
|
|