管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 1c285b38777e9f37ee8d112e994443d3640b78c1
src/main/resources/mapper/sys/RoleMapper.xml
@@ -6,7 +6,7 @@
        <where>
            1=1
            <if test="name != null">
                and a.name like #{name}
                and upper(a.name) like #{name}
            </if>
            <if test="depid != null">
                and a.depid = #{depid}
@@ -20,18 +20,18 @@
        <where>
            1=1
            <if test="name != null">
                and a.name like #{name}
                and upper(a.name) like #{name}
            </if>
            <if test="depid != null">
                and a.depid = #{depid}
            </if>
        </where>
        order by a.id
        order by a.id desc
        limit #{limit} offset #{offset}
    </select>
    <select id="selectRoleAll" resultType="com.lf.server.entity.sys.RoleEntity">
        select a.*,fn_rec_query(a.depid, 'dep') depName,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_role a order by a.id;
        select a.*,fn_rec_query(a.depid, 'dep') depName,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_role a order by a.id desc
    </select>
    <select id="selectRole" resultType="com.lf.server.entity.sys.RoleEntity">