fix(SysMenuMapper.xml): listRoute路由列表查询bug修复

This commit is contained in:
郝先瑞 2021-06-21 00:12:29 +08:00
parent f40157dc62
commit 17dc8fdb59

View File

@ -3,7 +3,6 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.youlai.admin.mapper.SysMenuMapper">
<resultMap id="BaseResultMap" type="com.youlai.admin.pojo.entity.SysMenu">
<id property="id" column="id" jdbcType="BIGINT"/>
<result property="name" column="name" jdbcType="VARCHAR"/>
@ -16,7 +15,7 @@
<result property="sort" column="sort" jdbcType="INTEGER"/>
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
<result property="gmtModified" column="gmt_modified" jdbcType="TIMESTAMP"/>
<collection property="roles" ofType="string" javaType="list">
<result column="code"/>
</collection>
@ -42,10 +41,10 @@
t1.visible,
t1.redirect,
t3.code
from sys_menu t1,
sys_role_menu t2,
sys_role t3
where t1.id = t2.menu_id
and t2.role_id = t3.id
from sys_menu t1
left join sys_role_menu t2 on t1.id = t2.menu_id
left join sys_role t3 on t2.role_id = t3.id
where t1.visible =${@com.youlai.common.constant.GlobalConstants@STATUS_YES}
order by t1.sort asc
</select>
</mapper>