From 85a54f184e8b0ac52a475f8e32a7df601da0ec54 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 19 一月 2026 09:53:16 +0800
Subject: [PATCH] 【市一】/smartor/serviceSubtask/queryTaskByCondition 查询优化

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

diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
index 50e4d92..c5a44ee 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
@@ -274,5 +274,16 @@
         </foreach>
     </update>
 
+    <select id="selectBySubtask" parameterType="com.smartor.domain.ServiceSubtask" resultMap="ServiceSubtaskPreachformResult">
+        <include refid="selectServiceSubtaskPreachformVo"/>
+        WHERE del_flag = 0
+        <!-- 鍏朵粬鏉′欢 -->
+        <if test="taskid != null">
+            AND taskid = #{taskid}
+        </if>
+        <if test="orgid != null and orgid != ''">
+            AND orgid = #{orgid}
+        </if>
+    </select>
 
 </mapper>

--
Gitblit v1.9.3