From 4a32d5080ec6a2feba71667405596b35f02d2a3d Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 21 四月 2026 13:52:22 +0800
Subject: [PATCH] 【省立同德】随访-导出调整

---
 smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml |   59 ++++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 36 insertions(+), 23 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
index 4ae0783..0da8b03 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -10,6 +10,7 @@
         <result property="param2" column="param2"/>
         <result property="param3" column="param3"/>
         <result property="param5" column="param5"/>
+        <result property="param6" column="param6"/>
         <result property="createTime" column="create_time"/>
         <result property="updateTime" column="update_time"/>
         <result property="delFlag" column="del_flag"/>
@@ -24,6 +25,7 @@
                param2,
                param3,
                param5,
+               param6,
                create_time,
                update_time,
                radix,
@@ -36,29 +38,31 @@
     <select id="selectServiceOutPathList" parameterType="com.smartor.domain.ServiceOutPath"
             resultMap="ServiceOutPathResult">
         <include refid="selectServiceOutPathVo"/>
-        <where>
-            del_flag=0
-            and orgid is null
-            <if test="param1 != null ">
-                and param1 = #{param1}
-            </if>
-            <if test="param2 != null ">
-                and param2 = #{param2}
-            </if>
-            <if test="param3 != null  and param3 != ''">
-                and param3 = #{param3}
-            </if>
-            <if test="param5 != null  and param5 != ''">
-                and param5 = #{param5}
-            </if>
-            <if test="createTime != null">
-                and create_time = #{createTime}
-            </if>
-            <if test="radix != null  and radix != ''">
-                and radix=#{radix}
-            </if>
+        where 1=1
+        and del_flag = 0
+        and orgid is null
+        <if test="param1 != null ">
+            and param1 = #{param1}
+        </if>
+        <if test="param2 != null ">
+            and param2 = #{param2}
+        </if>
+        <if test="param3 != null  and param3 != ''">
+            and param3 = #{param3}
+        </if>
+        <if test="param5 != null  and param5 != ''">
+            and param5 = #{param5}
+        </if>
+        <if test="param6 != null  and param6 != ''">
+            and param6 = #{param6}
+        </if>
+        <if test="createTime != null">
+            and create_time = #{createTime}
+        </if>
+        <if test="radix != null  and radix != ''">
+            and radix=#{radix}
+        </if>
 
-        </where>
     </select>
 
     <select id="selectServiceOutPathById" parameterType="Long"
@@ -120,6 +124,9 @@
             <if test="param5 != null">param5 =
                 #{param5},
             </if>
+            <if test="param6 != null">param6 =
+                #{param6},
+            </if>
             <if test="radix != null">radix =
                 #{radix},
             </if>
@@ -151,6 +158,12 @@
             #{id}
         </foreach>
     </update>
-
+    <select id="selectAutoId" resultType="Integer">
+        SELECT AUTO_INCREMENT
+        FROM INFORMATION_SCHEMA.TABLES
+        WHERE TABLE_NAME = 'service_out_path'
+          AND table_schema = DATABASE()
+          and onorgid
+    </select>
 
 </mapper>

--
Gitblit v1.9.3