From 4f0d9bde31a80f6279e26466250da7716eec627f Mon Sep 17 00:00:00 2001
From: zs <zhoushuai@zbooksoft.com>
Date: 星期四, 18 十二月 2025 09:15:05 +0800
Subject: [PATCH] 提交成果资料按钮调整

---
 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