配置统计修改为功能统计
This commit is contained in:
@@ -27,6 +27,30 @@
|
||||
a.function_id
|
||||
|
||||
</sql>
|
||||
<sql id="menuCfgColumns">
|
||||
a.id,
|
||||
a.parent_id AS "parent.id",
|
||||
a.parent_ids,
|
||||
a.code,
|
||||
a.name,
|
||||
a.href,
|
||||
a.target,
|
||||
a.icon,
|
||||
a.sort,
|
||||
a.is_show,
|
||||
a.permission,
|
||||
a.remarks,
|
||||
a.create_by AS "createBy.id",
|
||||
a.create_date,
|
||||
a.update_by AS "updateBy.id",
|
||||
a.update_date,
|
||||
a.del_flag,
|
||||
a.quick_action,
|
||||
a.menu_bg,
|
||||
a.is_top,
|
||||
a.function_id
|
||||
|
||||
</sql>
|
||||
|
||||
<sql id="menuJoins">
|
||||
LEFT JOIN sys_menu p ON p.id = a.parent_id
|
||||
@@ -48,6 +72,18 @@
|
||||
WHERE a.del_flag = #{DEL_FLAG_NORMAL}
|
||||
ORDER BY a.sort
|
||||
</select>
|
||||
<!-- 查询所有业务配置菜单 -->
|
||||
<select id="findAllCfgList" resultType="sysMenu" parameterType="java.lang.String">
|
||||
SELECT
|
||||
<include refid="menuCfgColumns"/>
|
||||
FROM sys_menu a
|
||||
WHERE a.del_flag = 1
|
||||
and a.is_show=1
|
||||
and function_id is not null
|
||||
<![CDATA[ and function_id <> 0 ]]>
|
||||
<![CDATA[ and function_id <> '' ]]>
|
||||
and a.parent_Ids like CONCAT('%,', #{policiesMenuId}, ',%')
|
||||
</select>
|
||||
|
||||
<select id="findSysMenuByUserId" resultType="sysMenu">
|
||||
SELECT DISTINCT
|
||||
|
||||
Reference in New Issue
Block a user