From be738537e87f8e71f22a0b284904ba063c7f8fe3 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 15:38:04 +0800
Subject: [PATCH] 【市一】where标签替换

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

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
index 26e3ff8..50e4d92 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>
@@ -65,7 +65,6 @@
             <if test="compensateTime != null ">
                 and compensate_time = #{compensateTime}
             </if>
-        </where>
     </select>
 
     <select id="selectServiceSubtaskPreachformById" parameterType="Long"
@@ -229,23 +228,22 @@
                 #{compensateTime},
             </if>
         </trim>
-        <where>
-            <if test="subid != null">subid =
+        where 1=1
+            <if test="subid != null">and subid =
                 #{subid},
             </if>
-            <if test="taskid != null">taskid =
+            <if test="taskid != null">and taskid =
                 #{taskid},
             </if>
-            <if test="preachform != null">preachform =
+            <if test="preachform != null">and preachform =
                 #{preachform},
             </if>
-            <if test="remark != null">remark =
+            <if test="remark != null">and remark =
                 #{remark},
             </if>
-            <if test="orgid != null">orgid =
+            <if test="orgid != null">and orgid =
                 #{orgid},
             </if>
-        </where>
     </update>
 
 

--
Gitblit v1.9.3