多单位版国产化地质资料管理系统
zhai
2025-11-17 378d576468f1378179a8a184e78b8aa6309edc0f
src/main/resources/mapper/MenuItemMapper.xml
@@ -15,6 +15,12 @@
        WHERE menu_id = #{menuId}
          and parent_id = #{parentId}
    </select>
    <select id="selectMaxSortNum" parameterType="Map" resultType="int" databaseId="postgresql">
        select NVL(max(sort_num), 0) sortNum
        FROM sys_menuitem
        WHERE menu_id = #{menuId}
          and parent_id = #{parentId}
    </select>
    <!-- 获取某个父节点下最大排序号 -->
    <select id="selectMaxSortNum" parameterType="Map" resultType="int" databaseId="kingbasees">
        select NVL(max(sort_num), 0) sortNum