疯狂的狮子Li
2024-10-31 d89727725b31991e7c35d999609b0bc4cdf17189
ruoyi-modules/ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
@@ -8,7 +8,14 @@
    </resultMap>
    <select id="selectDeptList" resultMap="SysDeptResult">
        select ${ew.getSqlSelect} from sys_dept ${ew.getCustomSqlSegment}
        select
        <if test="ew.getSqlSelect != null">
            ${ew.getSqlSelect}
        </if>
        <if test="ew.getSqlSelect == null">
            *
        </if>
        from sys_dept ${ew.getCustomSqlSegment}
    </select>
    <select id="countDeptById" resultType="Long">