From fe02f176b512a9d6a4e12437d929e04e99bb7567 Mon Sep 17 00:00:00 2001
From: zs <zhoushuai@zbooksoft.com>
Date: 星期三, 04 二月 2026 16:17:26 +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