多单位版国产化地质资料管理系统
zhai
2025-12-13 fc0cc9fff4b4cbdc7cbb52b4a96c947530fcbba0
src/main/resources/mapper/SubtabMapper.xml
@@ -14,6 +14,12 @@
      ifnull(max(sort_num),0) sortNum
      FROM cnf_subtab where module_id = #{moduleId}
   </select>
   <!-- 根据模块ID获取页签最大排序号 -->
   <select id="selectMaxSortNum" parameterType="Long" resultType="int" databaseId="postgresql">
      select
         NVL(max(sort_num),0) sortNum
      FROM cnf_subtab where module_id = #{moduleId}
   </select>
   <!-- 根据模块ID获取页签最大排序号 -->
   <select id="selectMaxSortNum" parameterType="Long" resultType="int" databaseId="oracle">