解决租户下的用户的数量的统计的bug

This commit is contained in:
jishenghua 2024-12-10 23:39:18 +08:00
parent 40bbdb8a1c
commit 2e44505b1f

View File

@ -8,7 +8,7 @@
<select id="selectByConditionTenant" parameterType="com.jsh.erp.datasource.entities.TenantExample" resultMap="ResultMapEx">
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
where 1=1
<if test="loginName != null">