@@ -38,6 +38,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="tenantId != null">
AND tenant_id = #{tenantId}
</if>
+ <if test="tenantId == null">
+ and tenant_id is null
+ </if>
</where>
</select>