| | |
| | | </select> |
| | | <select id="securityLazyTree" resultMap="treeNodeResultMap"> |
| | | SELECT |
| | | DISTINCT |
| | | dept.id, |
| | | dept.parent_id, |
| | | dept.dept_name AS title, |
| | |
| | | ) AS "has_children" |
| | | FROM |
| | | blade_dept dept |
| | | left join |
| | | sys_information si |
| | | on |
| | | si.departmentid = dept.id |
| | | WHERE |
| | | dept.parent_id = #{param2} AND dept.is_deleted = 0 |
| | | 1=1 |
| | | and dept_category = 1 |
| | | <if test="param1!=null and param1!=''"> |
| | | and dept.tenant_id = #{param1} |
| | | AND dept.is_deleted = 0 |
| | | and dept.id !=1420222961377357825 |
| | | and dept.parent_id!=1420222961377357825 |
| | | <if test="param1!=null and param1!='' and param1!='1123598813738675201'"> |
| | | and si.jurisdiction = #{param1} |
| | | </if> |
| | | ORDER BY dept.sort |
| | | </select> |
| | | </mapper> |