From e1b933c0c344494afe86bae9162dca9bdc34fd56 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 22 七月 2026 17:04:14 +0800
Subject: [PATCH] 【丽水】扫码生成外链

---
 smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml |  126 ++++++++++++++++++++++++++++++++++--------
 1 files changed, 102 insertions(+), 24 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
index eb99290..fd1a9fb 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceOutPathMapper.xml
@@ -10,12 +10,18 @@
         <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"/>
         <result property="radix" column="radix"/>
         <result property="guid" column="guid"/>
         <result property="orgid" column="orgid"/>
+        <result property="url" column="url"/>
+        <result property="wardCode" column="ward_code"/>
+        <result property="wardName" column="ward_name"/>
+        <result property="deptCode" column="dept_code"/>
+        <result property="deptName" column="dept_name"/>
     </resultMap>
 
     <sql id="selectServiceOutPathVo">
@@ -24,11 +30,17 @@
                param2,
                param3,
                param5,
+               param6,
                create_time,
                update_time,
                radix,
                guid,
                orgid,
+               url,
+               ward_code,
+               ward_name,
+               dept_code,
+               dept_name,
                del_flag
         from service_out_path
     </sql>
@@ -36,30 +48,45 @@
     <select id="selectServiceOutPathList" parameterType="com.smartor.domain.ServiceOutPath"
             resultMap="ServiceOutPathResult">
         <include refid="selectServiceOutPathVo"/>
-        <where>
-            <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="param5 != null  and param5 != ''">
-                and param5 = #{param5}
-            </if>
-            <if test="radix != null  and radix != ''">
-                and radix=#{radix}
-            </if>
+        where 1=1
+        and del_flag = 0
+        <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>
+        <if test="url != null  and url != ''">
+            and url=#{url}
+        </if>
+        <if test="wardCode != null  and wardCode != ''">
+            and ward_code=#{wardCode}
+        </if>
 
-        </where>
+        <if test="wardName != null  and wardName != ''">
+            and ward_name=#{wardName}
+        </if>
+        <if test="deptCode != null  and deptCode != ''">
+            and dept_code=#{deptCode}
+        </if>
+        <if test="deptName != null  and deptName != ''">
+            and dept_name=#{deptName}
+        </if>
     </select>
 
     <select id="selectServiceOutPathById" parameterType="Long"
@@ -84,7 +111,19 @@
             </if>
             <if test="radix != null">radix,
             </if>
+            <if test="orgid != null">orgid,
+            </if>
             <if test="createTime != null">create_time,
+            </if>
+            <if test="url != null">url,
+            </if>
+            <if test="wardCode != null">ward_code,
+            </if>
+            <if test="wardName != null">ward_name,
+            </if>
+            <if test="deptCode != null">dept_code,
+            </if>
+            <if test="deptName != null">dept_name,
             </if>
 
         </trim>
@@ -101,7 +140,19 @@
             </if>
             <if test="radix != null">#{radix},
             </if>
+            <if test="orgid != null">#{orgid},
+            </if>
             <if test="createTime != null">#{createTime},
+            </if>
+            <if test="url != null">#{url},
+            </if>
+            <if test="wardCode != null">#{wardCode},
+            </if>
+            <if test="wardName != null">#{wardName},
+            </if>
+            <if test="deptCode != null">#{deptCode},
+            </if>
+            <if test="deptName != null">#{deptName},
             </if>
         </trim>
     </insert>
@@ -121,6 +172,9 @@
             <if test="param5 != null">param5 =
                 #{param5},
             </if>
+            <if test="param6 != null">param6 =
+                #{param6},
+            </if>
             <if test="radix != null">radix =
                 #{radix},
             </if>
@@ -129,6 +183,24 @@
             </if>
             <if test="orgid != null">orgid =
                 #{orgid},
+            </if>
+            <if test="updateTime != null">update_time =
+                #{updateTime},
+            </if>
+            <if test="url != null">url =
+                #{url},
+            </if>
+            <if test="wardCode != null">ward_code =
+                #{wardCode},
+            </if>
+            <if test="wardName != null">ward_name =
+                #{wardName},
+            </if>
+            <if test="deptCode != null">dept_code =
+                #{deptCode},
+            </if>
+            <if test="deptName != null">dept_name =
+                #{deptName},
             </if>
         </trim>
         where id = #{id}
@@ -152,6 +224,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