| | |
| | | </if> |
| | | </select> |
| | | |
| | | <!--查询组织机构树数据(下级包含人员信息)--> |
| | | <!--查询组织机构树数据(下级包含人员信息)(排除组织机构对应不上的人员)--> |
| | | <select id="getUserMap" resultType="cn.gistack.common.node.DeptUserTreeNode"> |
| | | select |
| | | bu.id, |
| | | bu.dept_id parentId, |
| | | bu.account AS name, |
| | | bu.real_name AS name, |
| | | bu.phone, |
| | | 2 as isMan, |
| | | 0 as hasChildren |
| | | from blade_user bu left join blade_dept bd on bd.id = bu.dept_id |
| | | from blade_user bu join blade_dept bd on find_in_set(bu.dept_id,bd.id) |
| | | where 1=1 and bu.is_deleted = 0 and bu.status = 1 |
| | | <if test="treeNode.id!=null and treeNode.id!=''"> |
| | | and bu.dept_id like concat(concat('%',#{treeNode.id}),'%') |