疯狂的狮子Li
2024-01-31 3913bf68c6ea88eb3e1f8d84bee95696c3c1d0da
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -2,13 +2,17 @@
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.SysDeptMapper">
<mapper namespace="org.dromara.system.mapper.SysDeptMapper">
    <resultMap type="com.ruoyi.system.domain.vo.SysDeptVo" id="SysDeptResult">
    <resultMap type="org.dromara.system.domain.vo.SysDeptVo" id="SysDeptResult">
    </resultMap>
    <select id="selectDeptList" resultMap="SysDeptResult">
        select * from sys_dept ${ew.getCustomSqlSegment}
        select ${ew.getSqlSelect} from sys_dept ${ew.getCustomSqlSegment}
    </select>
    <select id="countDeptById" resultType="Long">
        select count(*) from sys_dept where del_flag = '0' and dept_id = #{deptId}
    </select>
    <select id="selectDeptListByRoleId" resultType="Long">