diff --git a/src/main/resources/mapper_xml/AccountMapperEx.xml b/src/main/resources/mapper_xml/AccountMapperEx.xml index d6fc3034..ef1d2e75 100644 --- a/src/main/resources/mapper_xml/AccountMapperEx.xml +++ b/src/main/resources/mapper_xml/AccountMapperEx.xml @@ -119,7 +119,7 @@ ( select count(1) a - from jsh_depothead dh inner join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1' + from jsh_depothead dh left join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1' where 1=1 and dh.AccountId=${accountId} @@ -128,7 +128,7 @@ UNION ALL select count(1) a - from jsh_accounthead ah inner join jsh_supplier s on ah.OrganId=s.id and ifnull(s.delete_Flag,'0') !='1' + from jsh_accounthead ah left join jsh_supplier s on ah.OrganId=s.id and ifnull(s.delete_Flag,'0') !='1' where 1=1 and ah.AccountId=${accountId} @@ -137,7 +137,7 @@ UNION ALL select count(1) a - from jsh_accounthead ah inner join jsh_supplier s on ah.OrganId=s.id + from jsh_accounthead ah left join jsh_supplier s on ah.OrganId=s.id inner join jsh_accountitem ai on ai.HeaderId=ah.Id and ifnull(ai.delete_Flag,'0') !='1' where ah.Type in ('收款','付款','收预付款') @@ -165,7 +165,7 @@ UNION ALL select count(1) a - from jsh_depothead dh inner join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1' + from jsh_depothead dh left join jsh_supplier s on dh.OrganId = s.id and ifnull(s.delete_Flag,'0') !='1' where 1=1 and dh.AccountIdList like '%${accountId}%'