Browse Source

修复部门列表逻辑

test v2.5.1.release
smallchill 4 years ago
parent
commit
1a10e7aa5f
  1. 2
      blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.xml

2
blade-service/blade-system/src/main/java/org/springblade/system/mapper/DeptMapper.xml

@ -61,7 +61,7 @@
and dept.tenant_id = #{param1} and dept.tenant_id = #{param1}
</if> </if>
<if test="param2!=null"> <if test="param2!=null">
and (dept.parent_id = #{param2} or dept.ancestors like concat(concat('%', #{param2}),'%')) and dept.parent_id = #{param2}
</if> </if>
<if test="param3.deptName!=null and param3.deptName!=''"> <if test="param3.deptName!=null and param3.deptName!=''">
and dept.dept_name like concat(concat('%', #{param3.deptName}),'%') and dept.dept_name like concat(concat('%', #{param3.deptName}),'%')

Loading…
Cancel
Save