| | |
| | | |
| | | <!-- 通用查询映射结果 --> |
| | | <resultMap id="BaseResultMap" type="com.ycl.entity.user.UmsAdminRoleRelation"> |
| | | <id column="id" property="id" /> |
| | | <result column="admin_id" property="adminId" /> |
| | | <result column="role_id" property="roleId" /> |
| | | <id column="id" property="id"/> |
| | | <result column="admin_id" property="adminId"/> |
| | | <result column="role_id" property="roleId"/> |
| | | </resultMap> |
| | | |
| | | <select id="selectPermissionById" parameterType="java.lang.Long" resultType="java.lang.String"> |
| | | SELECT t3.`name` |
| | | FROM `ums_admin_role_relation` AS t1 |
| | | JOIN ums_role t2 on t1.role_id = t2.id |
| | | JOIN ums_data_dictionary t3 ON t2.type = t3.id |
| | | WHERE t1.admin_id = #{id} |
| | | </select> |
| | | |
| | | </mapper> |