From 3c6f6c1e3016e38146a4c46be6e7b625c35591f2 Mon Sep 17 00:00:00 2001
From: zhai <1528081232@qq.com>
Date: 星期四, 18 十二月 2025 11:49:18 +0800
Subject: [PATCH] 1、添加报表 2、修改添加报表报错
---
src/main/resources/mapper/SubtabMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/SubtabMapper.xml b/src/main/resources/mapper/SubtabMapper.xml
index 020f29f..0c6326f 100644
--- a/src/main/resources/mapper/SubtabMapper.xml
+++ b/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">
--
Gitblit v1.9.1