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/ServiceSubtaskDetailMapper.xml | 21 ++++++++++++++++-----
1 files changed, 16 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
index 761ca97..64e9571 100644
--- a/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ServiceSubtaskDetailMapper.xml
@@ -35,6 +35,7 @@
<result property="questiontext" column="questiontext"/>
<result property="questionvoice" column="questionvoice"/>
<result property="categoryname" column="categoryname"/>
+ <result property="categoryid" column="categoryid"/>
<result property="targetoptions" column="targetoptions"/>
<result property="targetvalue" column="targetvalue"/>
<result property="matchedtext" column="matchedtext"/>
@@ -99,6 +100,7 @@
questiontext,
questionvoice,
categoryname,
+ categoryid,
targetoptions,
targetvalue,
matchedtext,
@@ -118,7 +120,9 @@
<select id="selectServiceSubtaskDetailList" parameterType="com.smartor.domain.ServiceSubtaskDetail"
resultMap="ServiceSubtaskDetailResult">
<include refid="selectServiceSubtaskDetailVo"/>
- <where>
+ WHERE 1=1
+ <if test="orgid != null and orgid != ''"> and orgid = #{orgid}</if>
+
<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>
@@ -146,10 +150,11 @@
<if test="templateid != null and templateid != ''">and templateid = #{templateid}</if>
<if test="templatequestionnum != null ">and templatequestionnum = #{templatequestionnum}</if>
<if test="switchid != null ">and switchid = #{switchid}</if>
+ <if test="categoryid != null ">and categoryid = #{categoryid}</if>
<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},
- '%')
+ <if test="categoryname != null and categoryname != ''">
+ and categoryname like concat('%', #{categoryname},'%')
</if>
<if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if>
<if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
@@ -163,7 +168,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">
@@ -171,7 +176,9 @@
where id = #{id}
</select>
- <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail">
+ <insert id="insertServiceSubtaskDetail" parameterType="com.smartor.domain.ServiceSubtaskDetail"
+ useGeneratedKeys="true"
+ keyProperty="id">
insert into service_subtask_detail
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">id,</if>
@@ -223,6 +230,7 @@
<if test=" patid != null">patid,</if>
<if test=" extemplateText != null">extemplate_text,</if>
<if test=" guid != null">guid,</if>
+ <if test=" categoryid != null">categoryid,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -274,6 +282,7 @@
<if test="patid != null">#{patid},</if>
<if test="extemplateText != null">#{extemplateText},</if>
<if test="guid != null">#{guid},</if>
+ <if test="categoryid != null">#{categoryid},</if>
</trim>
</insert>
@@ -328,6 +337,7 @@
<if test=" patid != null">patid = #{patid},</if>
<if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
<if test=" guid != null">guid = #{guid},</if>
+ <if test=" categoryid != null">categoryid = #{categoryid},</if>
</trim>
where id = #{id}
</update>
@@ -384,6 +394,7 @@
<if test=" patid != null">patid = #{patid},</if>
<if test=" extemplateText != null">extemplate_text = #{extemplateText},</if>
<if test=" guid != null">guid = #{guid},</if>
+ <if test=" categoryid != null">categoryid = #{categoryid},</if>
</trim>
where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId}
</update>
--
Gitblit v1.9.3