tangzy
2021-09-02 92d375e11f68b898cd8a46cf02bcb82cd469ded5
src/main/java/org/springblade/modules/system/mapper/RoleMapper.xml
@@ -21,7 +21,9 @@
    </resultMap>
    <select id="selectRolePage" resultMap="roleResultMap">
        select * from blade_role where is_deleted = 0
        select *
        from blade_role
        where is_deleted = 0
    </select>
    <select id="tree" resultMap="treeNodeResultMap">
@@ -30,7 +32,10 @@
            and tenant_id = #{param1}
        </if>
        <if test="param2!=null">
            and role_alias &lt;&gt; #{param2}
            and dept_id = #{param2}
        </if>
        <if test="param3!=null">
            and role_alias &lt;&gt; #{param3}
        </if>
    </select>
@@ -60,4 +65,16 @@
        and is_deleted = 0
    </select>
    <select id="Info" resultType="java.lang.String">
        SELECT role_alias as rolename
        FROM blade_role
        WHERE id = #{id}
          and is_deleted = 0
    </select>
    <select id="selectRole" resultType="java.util.HashMap">
        SELECT id,role_name AS title FROM blade_role WHERE is_deleted = 0 AND id != 1123598816738675201
    </select>
</mapper>