| | |
| | | FROM DepartmentHierarchy |
| | | WHERE parent_id = 100; |
| | | </select> |
| | | <select id="selectAllDept" resultType="com.ruoyi.production.dto.SysDeptAndUserDto"> |
| | | SELECT dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, |
| | | status, del_flag, create_by, create_time, update_by, update_time, dept_nick |
| | | FROM sys_dept |
| | | WHERE del_flag = '0' AND status = '0' |
| | | ORDER BY order_num ASC |
| | | </select> |
| | | <select id="selectChildrenDeptByParentId" resultType="com.ruoyi.production.dto.SysDeptAndUserDto"> |
| | | SELECT dept_id, parent_id, ancestors, dept_name, order_num, leader, phone, email, |
| | | status, del_flag, create_by, create_time, update_by, update_time, dept_nick |
| | | FROM sys_dept |
| | | WHERE parent_id = #{parentId} AND del_flag = '0' AND status = '0' |
| | | ORDER BY order_num ASC |
| | | </select> |
| | | |
| | | </mapper> |