Browse Source

部门搜索多加了份 perent_id = 0的判断

v2
蟑螂恶霸 2 years ago
parent
commit
b384a0be44
  1. 5
      lib/EmergencyService/zdxtEmergencyAuthService/src/main/resources/mapper/system/DeptMapper.xml

5
lib/EmergencyService/zdxtEmergencyAuthService/src/main/resources/mapper/system/DeptMapper.xml

@ -126,7 +126,10 @@
<select id="selectDeptList" parameterType="Dept" resultMap="DeptResult"> <select id="selectDeptList" parameterType="Dept" resultMap="DeptResult">
<include refid="selectDeptVo"/> <include refid="selectDeptVo"/>
where d.del_flag = '0' where d.del_flag = '0'
<if test="parentId != null and parentId != ''"> <if test="parentId != null and parentId != '' and parentId == '0'">
AND parent_id = #{parentId} or parent_id is null
</if>
<if test="parentId != null and parentId != '' and parentId != '0'">
AND parent_id = #{parentId} AND parent_id = #{parentId}
</if> </if>
<if test="deptName != null and deptName != ''"> <if test="deptName != null and deptName != ''">

Loading…
Cancel
Save