mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-23 13:03:43 +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"
|
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||||
<mapper namespace="com.youlai.admin.mapper.SysMenuMapper">
|
<mapper namespace="com.youlai.admin.mapper.SysMenuMapper">
|
||||||
|
|
||||||
<resultMap id="BaseResultMap" type="com.youlai.admin.pojo.entity.SysMenu">
|
<resultMap id="BaseResultMap" type="com.youlai.admin.pojo.entity.SysMenu">
|
||||||
<id property="id" column="id" jdbcType="BIGINT"/>
|
<id property="id" column="id" jdbcType="BIGINT"/>
|
||||||
<result property="name" column="name" jdbcType="VARCHAR"/>
|
<result property="name" column="name" jdbcType="VARCHAR"/>
|
||||||
@ -16,7 +15,7 @@
|
|||||||
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
<result property="sort" column="sort" jdbcType="INTEGER"/>
|
||||||
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
|
<result property="visible" column="visible" jdbcType="BOOLEAN"/>
|
||||||
<result property="gmtCreate" column="gmt_create" jdbcType="TIMESTAMP"/>
|
<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">
|
<collection property="roles" ofType="string" javaType="list">
|
||||||
<result column="code"/>
|
<result column="code"/>
|
||||||
</collection>
|
</collection>
|
||||||
@ -42,10 +41,10 @@
|
|||||||
t1.visible,
|
t1.visible,
|
||||||
t1.redirect,
|
t1.redirect,
|
||||||
t3.code
|
t3.code
|
||||||
from sys_menu t1,
|
from sys_menu t1
|
||||||
sys_role_menu t2,
|
left join sys_role_menu t2 on t1.id = t2.menu_id
|
||||||
sys_role t3
|
left join sys_role t3 on t2.role_id = t3.id
|
||||||
where t1.id = t2.menu_id
|
where t1.visible =${@com.youlai.common.constant.GlobalConstants@STATUS_YES}
|
||||||
and t2.role_id = t3.id
|
order by t1.sort asc
|
||||||
</select>
|
</select>
|
||||||
</mapper>
|
</mapper>
|
||||||
|
Loading…
Reference in New Issue
Block a user