Browse Source

过滤条件处理

yzc 1 year ago
parent
commit
f921506768
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

+ 1 - 1
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -59,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="status != null and status != ''">
 		<if test="status != null and status != ''">
 			AND d.status = #{status}
 			AND d.status = #{status}
 		</if>
 		</if>
-		<if test="type != null and type != ''">
+		<if test="type != null">
 			AND d.type = #{type}
 			AND d.type = #{type}
 		</if>
 		</if>
 <!--		<if test="tenantId != null and tenantId != ''">-->
 <!--		<if test="tenantId != null and tenantId != ''">-->