From 987e38327f849e1b13d8541246dde08d877db0e8 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期三, 07 一月 2026 14:10:43 +0800
Subject: [PATCH] 【市一】调整mapper获取ordid
---
smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml | 14 ++++++++------
1 files changed, 8 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..9f47e28 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskPreachformMapper.xml
@@ -42,8 +42,9 @@
<select id="selectServiceSubtaskPreachformList" parameterType="com.smartor.domain.ServiceSubtaskPreachform"
resultMap="ServiceSubtaskPreachformResult">
<include refid="selectServiceSubtaskPreachformVo"/>
- <where>
- del_flag=0
+ WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+ AND del_flag=0
<if test="subid != null ">
and subid = #{subid}
</if>
@@ -56,7 +57,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 +66,6 @@
<if test="compensateTime != null ">
and compensate_time = #{compensateTime}
</if>
- </where>
</select>
<select id="selectServiceSubtaskPreachformById" parameterType="Long"
@@ -229,7 +229,9 @@
#{compensateTime},
</if>
</trim>
- <where>
+ WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+
<if test="subid != null">subid =
#{subid},
</if>
@@ -245,7 +247,7 @@
<if test="orgid != null">orgid =
#{orgid},
</if>
- </where>
+
</update>
--
Gitblit v1.9.3