mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 05:00:25 +08:00
fix(SysMenuMapper.xml): listRoute路由列表查询bug修复
This commit is contained in:
parent
f40157dc62
commit
17dc8fdb59
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user