zouxuan 5 years ago
parent
commit
e434844075

+ 2 - 2
edu-auth/edu-auth-server/src/main/resources/config/mybatis/SysRoleMapper.xml

@@ -70,7 +70,7 @@
     <!-- 分页查询 -->
     <select id="queryPage" resultMap="SysRole" parameterType="map">
         SELECT * FROM sys_role WHERE del_flag_ = 0
-        <if test="tenantId != null and tenantId != 0">
+        <if test="tenantId != null">
             AND tenant_id_ = #{tenantId}
         </if>
         ORDER BY update_time_ DESC
@@ -80,7 +80,7 @@
     <!-- 查询当前表的总记录数 -->
     <select id="queryCount" resultType="int">
 		SELECT COUNT(*) FROM sys_role WHERE del_flag_ = 0
-        <if test="tenantId != null and tenantId != 0">
+        <if test="tenantId != null">
             AND tenant_id_ = #{tenantId}
         </if>
 	</select>