lyh
2 天以前 3ce27b7faf8850d101a1511a685250fe562dca18
src/main/resources/com.lxzn.ucenter.dao/RoleMapper.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.lxzn.ucenter.dao.RoleMapper">
    <select id="getUserPermRole" resultType="Role" parameterType="String">
    <select id="getUserPermRole" resultType="com.lxzn.framework.domain.ucenter.Role" parameterType="String">
        select r.role_id, r.role_code, r.role_name, r.description
        from
        (select role_id, role_code, role_name, description from sys_role where delete_flag=0) r
@@ -10,10 +10,10 @@
        on r.role_id=ur.role_id
    </select>
    <select id="getUserNonPermRole" resultType="Role" parameterType="String">
    <select id="getUserNonPermRole" resultType="com.lxzn.framework.domain.ucenter.Role" parameterType="String">
        select r.role_id, r.role_code, r.role_name, r.description
        from (select role_id, role_code, role_name, description from sys_role where delete_flag=0) r
        where r.role_id not in
        (select role_id from sys_user_role where user_id=#{userId})
    </select>
</mapper>
</mapper>