From 02e4e3a9fcfbe2a366fc75868dfa019145cea9d2 Mon Sep 17 00:00:00 2001
From: sinake <sinake1@qq.com>
Date: 星期一, 20 十月 2025 15:05:18 +0800
Subject: [PATCH] 市一短信和微信问卷及orgid过滤优化

---
 smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml |   22 ++++++++++------------
 1 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
index b246fe1..54cb39c 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -37,6 +37,8 @@
             resultMap="ServiceOutPathResult">
         <include refid="selectServiceOutPathVo"/>
         <where>
+            del_flag=0
+            and orgid is null
             <if test="param1 != null ">
                 and param1 = #{param1}
             </if>
@@ -51,9 +53,6 @@
             </if>
             <if test="createTime != null">
                 and create_time = #{createTime}
-            </if>
-            <if test="param5 != null  and param5 != ''">
-                and param5 = #{param5}
             </if>
             <if test="radix != null  and radix != ''">
                 and radix=#{radix}
@@ -80,13 +79,11 @@
             </if>
             <if test="param5 != null">param5,
             </if>
+            <if test="param6 != null">param6,
+            </if>
             <if test="radix != null">radix,
             </if>
             <if test="createTime != null">create_time,
-            </if>
-            <if test="guid != null">guid,
-            </if>
-            <if test="orgid != null">orgid,
             </if>
 
         </trim>
@@ -99,13 +96,11 @@
             </if>
             <if test="param5 != null">#{param5},
             </if>
+            <if test="param6 != null">#{param6},
+            </if>
             <if test="radix != null">#{radix},
             </if>
             <if test="createTime != null">#{createTime},
-            </if>
-            <if test="guid != null">#{guid},
-            </if>
-            <if test="orgid != null">#{orgid},
             </if>
         </trim>
     </insert>
@@ -156,6 +151,9 @@
             #{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