南昌市物联网技防平台-后台
Administrator
2021-04-26 1ceb6ae074bc40a687852ce0fcef1ff2aa9c5840
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>