Commit 1ab56eb3 by liuyongshuai Committed by liuyongshuai

优化查询权限菜单方法。

parent b9168a3c
......@@ -478,7 +478,7 @@
ID, NAME, MENUNAME, PID, PERMISSION, URL, DESCRIPTION, TYPE
FROM
sys_permission_new
where scbz = 0 AND flag=1/*生成菜单*/
where scbz = 0 AND flag=1 AND id like 'H01%' ORDER BY ID
</select>
<!--根据userid查询菜单-->
<select id="selectMencusByUserId" resultType="com.xzxtshiro.pojo.SysPermissionNew">
......@@ -487,8 +487,9 @@
ID, NAME, MENUNAME, PID, PERMISSION, URL, TYPE
FROM
VW_USER_PERMISSION
where flag=1/*生成菜单*/
where flag=1
<if test="userId!=null">and USERID=#{userId,jdbcType=VARCHAR}</if>
AND id like 'H01%' ORDER BY ID
</select>
<!--查询用户列表-->
<select id="selectSysUserByCondition" resultMap="BaseResultMap">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment