疯狂的狮子li
2023-03-27 2670877343c40ae19f536cd9cc19e39ce3153a76
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -4,13 +4,17 @@
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
    <resultMap type="com.ruoyi.system.domain.SysDept" id="SysDeptResult">
    <resultMap type="com.ruoyi.system.domain.vo.SysDeptVo" id="SysDeptResult">
    </resultMap>
    <select id="selectDeptList" resultMap="SysDeptResult">
        select * from sys_dept ${ew.getCustomSqlSegment}
    </select>
    <select id="selectDeptById" resultMap="SysDeptResult">
        select * from sys_dept where del_flag = '0' and dept_id = #{deptId}
    </select>
    <select id="selectDeptListByRoleId" resultType="Long">
        select d.dept_id
        from sys_dept d