5 天以前 92d8d06d8ae38c407715a5e9389691b446413e0a
src/main/resources/mapper/system/SysDeptMapper.xml
@@ -183,5 +183,19 @@
      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>