解决租户下的用户的数量的统计的bug
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
|
|
||||||
<select id="selectByConditionTenant" parameterType="com.jsh.erp.datasource.entities.TenantExample" resultMap="ResultMapEx">
|
<select id="selectByConditionTenant" parameterType="com.jsh.erp.datasource.entities.TenantExample" resultMap="ResultMapEx">
|
||||||
select jsh_tenant.*,
|
select jsh_tenant.*,
|
||||||
(select count(jsh_user.id) from jsh_user where jsh_user.Status='0' and jsh_user.tenant_id=jsh_tenant.tenant_id) userCount
|
(select count(jsh_user.id) from jsh_user where jsh_user.status='0' and jsh_user.delete_flag=0 and jsh_user.tenant_id=jsh_tenant.tenant_id) userCount
|
||||||
FROM jsh_tenant
|
FROM jsh_tenant
|
||||||
where 1=1
|
where 1=1
|
||||||
<if test="loginName != null">
|
<if test="loginName != null">
|
||||||
|
|||||||
Reference in New Issue
Block a user