From ec23ec3d3dc4ec1ba7d79ba4f46ae2c31d5a16a9 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 10:49:10 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid

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

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
index 26e3ff8..84a2104 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
@@ -42,8 +42,8 @@
     <select id="selectServiceSubtaskPreachformList" parameterType="com.smartor.domain.ServiceSubtaskPreachform"
             resultMap="ServiceSubtaskPreachformResult">
         <include refid="selectServiceSubtaskPreachformVo"/>
-        <where>
-            del_flag=0
+            WHERE 1=1
+            AND del_flag=0
             <if test="subid != null ">
                 and subid = #{subid}
             </if>
@@ -56,7 +56,7 @@
             <if test="sendstate != null  and sendstate != ''">
                 and sendstate = #{sendstate}
             </if>
-            <if test="orgid != null  and orgid != ''">
+            <if test="orgid != null and orgid != ''">
                 and orgid = #{orgid}
             </if>
             <if test="sort != null ">
@@ -65,7 +65,6 @@
             <if test="compensateTime != null ">
                 and compensate_time = #{compensateTime}
             </if>
-        </where>
     </select>
 
     <select id="selectServiceSubtaskPreachformById" parameterType="Long"
@@ -229,7 +228,8 @@
                 #{compensateTime},
             </if>
         </trim>
-        <where>
+        WHERE 1=1
+
             <if test="subid != null">subid =
                 #{subid},
             </if>
@@ -245,7 +245,7 @@
             <if test="orgid != null">orgid =
                 #{orgid},
             </if>
-        </where>
+        
     </update>
 
 

--
Gitblit v1.9.3