diff --git a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml index 123b35337..078381401 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/analysis/mappers/TransactionAnalysisMapper.xml @@ -298,7 +298,9 @@ and o.client_id=#{client_id} - and l.org_id=#{org_id} + and l.org_id=#{org_id} + and l.org_id in + #{org_id} @@ -524,7 +530,9 @@ and o.gateway in #{gateway} - and p.org_id=#{org_id} + and p.org_id=#{org_id} + and p.org_id in + #{org_id} and o.create_time >= #{from} and o.create_time < #{to} and date(o.create_time)=date(#{date}) diff --git a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml index aeee99c0f..141aa0ba3 100644 --- a/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml +++ b/src/main/resources/au/com/royalpay/payment/manage/mappers/payment/TransactionMapper.xml @@ -272,7 +272,9 @@ and t.transaction_time >= #{from} and t.transaction_time < #{to} - and c.org_id = #{org_id} + and c.org_id = #{org_id} + and c.org_id in + #{org_id} GROUP BY DATE(t.transaction_time) order by t.clearing_time desc @@ -289,7 +291,9 @@ and t.transaction_time >= #{from} and t.transaction_time < #{to} and c.client_moniker=#{client_moniker} - and c.org_id = #{org_id} + and c.org_id = #{org_id} + and c.org_id in + #{org_id} GROUP BY c.client_id order by total desc @@ -306,7 +310,9 @@ and t.transaction_time >= #{from} and t.transaction_time < #{to} and c.client_moniker=#{client_moniker} - and c.org_id = #{org_id} + and c.org_id = #{org_id} + and c.org_id in + #{org_id}