LIVE_YE 2 anni fa
parent
commit
adc836d993

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

@@ -160,7 +160,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
 		<include refid="selectDeptVo"/>
 		where d.del_flag = '0'
 		<if test="deptId != null and deptId != 0">
-			AND (dept_id = #{deptId} or ancestors like concat('%', #{deptId}, '%')
+			AND (dept_id = #{deptId} or ancestors like concat('%', #{deptId}, '%'))
 		</if>
 		<if test="parentId != null and parentId != 0">
 			AND parent_id = #{parentId}