skjcmanager/skjcmanager-service/skjcmanager-system/src/main/java/cn/gistack/system/mapper/MenuMapper.xml
@@ -475,4 +475,50 @@
        GROUP BY m.path
    </select>
    <select id="selectAppMenu" resultType="cn.gistack.system.vo.MenuVO">
        SELECT MENU.* FROM BLADE_MENU MENU
        LEFT JOIN BLADE_MENU TOPMENU ON TOPMENU.ID = MENU.PARENT_ID
        LEFT JOIN BLADE_ROLE_MENU BRM ON BRM.MENU_ID = MENU.ID
        WHERE TOPMENU.NAME='app'
        AND BRM.ROLE_ID = #{roleId}
        AND MENU.IS_DELETED = 0
                ORDER BY MENU.SORT ASC
    </select>
    <resultMap id="webMenu" type="cn.gistack.system.vo.WebMenuVO">
        <result property="id" column="id"/>
        <result property="parentId" column="parent_id"/>
        <result property="component" column="component"/>
        <result property="path" column="path"/>
        <association property="meta" javaType="cn.gistack.system.vo.Meta">
            <result property="title" column="name"></result>
            <result property="icon" column="icon_path"></result>
        </association>
    </resultMap>
    <select id="selectWebTopMenu" resultMap="webMenu">
        SELECT MENU.id,MENU.parent_id,MENU.component,MENU.path,MENU.name,MENU.ICON_PATH FROM BLADE_MENU MENU
        LEFT JOIN BLADE_ROLE_MENU BRM ON BRM.MENU_ID = MENU.ID
        WHERE MENU.NAME='web' AND MENU.PARENT_ID = 0
        AND MENU.IS_DELETED = 0
    </select>
    <select id="getChildrenListById"  resultMap="webMenu">
        SELECT MENU.id,MENU.parent_id,MENU.component,MENU.path,MENU.name,MENU.icon_path FROM BLADE_MENU MENU
         LEFT JOIN BLADE_ROLE_MENU BRM ON BRM.MENU_ID = MENU.ID
         WHERE MENU.parent_id = #{id}
         AND BRM.ROLE_ID = #{roleId}
         AND MENU.IS_DELETED = 0 ORDER BY MENU.SORT ASC
    </select>
    <select id="getButtonList" resultType="cn.gistack.system.vo.MenuVO">
        SELECT * FROM BLADE_MENU M
        LEFT JOIN BLADE_ROLE_MENU BRM ON M.ID = BRM.MENU_ID
        WHERE BRM.ROLE_ID  IN
        <foreach collection="roleIds" index="index" item="item" open="(" separator="," close=")">
          #{item}
        </foreach>
        AND M.CATEGORY = 2 AND M.IS_DELETED = 0 AND M.BUTTON_REMARK = 'WEB'
    </select>
</mapper>