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/ServiceSubtaskDetailMapper.xml | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
index dd283ea..6d1f984 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -120,7 +120,8 @@
<select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail"
resultMap="ServiceSubtaskDetailResult">
<include refid="selectServiceSubtaskDetailVo"/>
- <where>
+ WHERE 1=1
+
<if test="subId != null">and sub_id = #{subId}</if>
<if test="targetid != null">and targetid = #{targetid}</if>
<if test="extemplateText != null">and extemplate_text = #{extemplateText}</if>
@@ -152,7 +153,7 @@
<if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if>
<if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if>
<if test="categoryname != null and categoryname != ''">and categoryname like concat('%', #{categoryname},
- '%')
+ AND '%')
</if>
<if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if>
<if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
@@ -166,7 +167,7 @@
<if test="comment != null and comment != ''">and comment = #{comment}</if>
<if test="scriptid != null ">and scriptid = #{scriptid}</if>
<if test=" patid != null">and patid = #{patid}</if>
- </where>
+
</select>
<select id="selectServiceSubtaskDetailByCalldetailid" parameterType="String" resultMap="ServiceSubtaskDetailResult">
--
Gitblit v1.9.3