You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.5 KiB
34 lines
1.5 KiB
<?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.iteaj.iboot.msn.core.mapper.IMenuDao">
|
|
|
|
<resultMap type="com.iteaj.iboot.msn.core.entity.Menu" id="OriMap">
|
|
<id property="id" column="id" />
|
|
<result property="name" column="name" />
|
|
<result property="pid" column="pid" />
|
|
<result property="sort" column="sort" />
|
|
<result property="url" column="url" />
|
|
<result property="log" column="log" />
|
|
<result property="type" column="type" />
|
|
<result property="icon" column="icon" />
|
|
<result property="perms" column="perms" />
|
|
<result property="remark" column="remark" />
|
|
<result property="createTime" column="create_time" />
|
|
<result property="updateTime" column="update_time" />
|
|
</resultMap>
|
|
<select id="selectAdminMenus" resultType="String">
|
|
select a.id from sys_menu a
|
|
left join sys_role_menu rm on a.id = rm.mid
|
|
left join sys_admin_role ar on rm.rid=ar.rid
|
|
where a.status != 'disabled' and ar.aid=#{aid}
|
|
</select>
|
|
|
|
<select id="selectPermissions" resultType="java.lang.String">
|
|
select a.perms from sys_menu a
|
|
left join sys_role_menu rm on a.id = rm.mid
|
|
left join sys_admin_role ar on rm.rid=ar.rid
|
|
where a.status != 'disabled' and a.type != 'M' and ar.aid=#{adminId}
|
|
</select>
|
|
</mapper>
|