diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml index 73509a46b..755ed65dc 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/OrderMapper.xml @@ -265,7 +265,8 @@ and (p.client_moniker=#{search_text} or p.short_name like #{name_pattern} or o.order_detail like - #{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or t.order_id = #{search_text}) + #{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or t.order_id = #{search_text} + or o.client_order_id = #{search_text}) and p.client_moniker=#{search_text} @@ -345,7 +346,8 @@ and (p.client_moniker=#{search_text} or p.short_name like #{name_pattern} or o.order_detail like - #{name_pattern} or t.system_transaction_id =#{search_text} or o.channel = #{search_text} ) + #{name_pattern} or t.system_transaction_id=#{search_text} or o.channel = #{search_text} or t.order_id = #{search_text} + or o.client_order_id = #{search_text}) and p.client_moniker=#{search_text} @@ -362,6 +364,15 @@ and t.system_transaction_id =#{search_text} + + and o.order_detail like #{name_pattern} + + + and t.order_id = #{search_text} + + + and o.client_order_id = #{search_text} + and p.org_id in #{org_id}