blade-service/blade-system/src/main/java/org/springblade/system/mapper/TenantMapper.xml
@@ -30,8 +30,15 @@ </resultMap> <select id="selectTenantPage" resultMap="tenantResultMap"> select * from blade_tenant where is_deleted = 0 and tenant_id!=000000 <select id="selectTenantPage" resultType="org.springblade.system.vo.TenantVo"> select bt.*,bd.id deptId from blade_tenant bt left join blade_dept bd on bt.tenant_id=bd.tenant_id where bt.is_deleted = 0 and bt.tenant_id!=000000 and bd.dept_category=1 <if test="tenant.tenantName!=null and tenant.tenantName!=''"> and tenant_name=#{tenant.tenantName} </if>