Bladeren bron

部门状态

buzhanyi 2 jaren geleden
bovenliggende
commit
befa51b4e2
1 gewijzigde bestanden met toevoegingen van 3 en 0 verwijderingen
  1. 3 0
      base-system/src/main/resources/mapper/system/SysDeptMapper.xml

+ 3 - 0
base-system/src/main/resources/mapper/system/SysDeptMapper.xml

@@ -53,6 +53,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<if test="parentId != null and parentId != 0">
 		<if test="parentId != null and parentId != 0">
 			AND parent_id = #{parentId}
 			AND parent_id = #{parentId}
 		</if>
 		</if>
+		<if test="status != null and status != ''">
+			AND status = #{status}
+		</if>
 		<if test="deptName != null and deptName != ''">
 		<if test="deptName != null and deptName != ''">
 			AND dept_name like concat('%', #{deptName}, '%')
 			AND dept_name like concat('%', #{deptName}, '%')
 		</if>
 		</if>