From 4c0da4f99ca97d2cfcaa00fd5cd9c3d69d089bfa Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 22 四月 2026 19:39:04 +0800
Subject: [PATCH] 获取subid
---
smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml | 66 ++++++++++++++++++---------------
1 files changed, 36 insertions(+), 30 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
index 20de24c..462d545 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
@@ -38,11 +38,13 @@
<result property="picturePath" column="picture_path"/>
<result property="isEnd" column="is_end"/>
<result property="isException" column="is_exception"/>
+ <result property="defaultValue" column="default_value"/>
</resultMap>
<sql id="selectIvrLibaScriptTargetoptionVo">
select id,
targetid,
+ default_value,
is_end,
is_exception,
picture_path,
@@ -65,36 +67,37 @@
resultMap="IvrLibaScriptTargetoptionResult">
<include refid="selectIvrLibaScriptTargetoptionVo"/>
where 1=1
- and del_flag = 0
- <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if>
- <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if>
- <if test="scriptid != null ">and scriptid = #{scriptid}</if>
- <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if>
- <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
- '%')
- </if>
- <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
- <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if>
- <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if>
- <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if>
- <if test="language != null and language != ''">and language = #{language}</if>
- <if test="version != null ">and version = #{version}</if>
- <if test="isEnd != null ">and is_end = #{isEnd}</if>
- <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if>
- <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if>
- <if test="warnup != null ">and warnup = #{warnup}</if>
- <if test="warndown != null ">and warndown = #{warndown}</if>
- <if test="isupload != null ">and isupload = #{isupload}</if>
- <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
- <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
- <if test="pid != null ">and pid = #{pid}</if>
- <if test="guid != null and guid != ''">and guid = #{guid}</if>
- <if test="nodynamiccruxsJson != null ">and nodynamiccruxs = #{nodynamiccruxsJson}</if>
- <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if>
- <if test="appendflag != null">and appendflag = #{appendflag}</if>
- <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
- <if test="picturePath != null">and picture_path = #{picturePath}</if>
- <if test="isException != null">and is_exception = #{isException}</if>
+ and del_flag = 0
+ <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if>
+ <if test="defaultValue != null">and default_value = #{defaultValue}</if>
+ <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if>
+ <if test="scriptid != null ">and scriptid = #{scriptid}</if>
+ <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if>
+ <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName},
+ '%')
+ </if>
+ <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if>
+ <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if>
+ <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if>
+ <if test="optiondesc != null and optiondesc != ''">and optiondesc = #{optiondesc}</if>
+ <if test="language != null and language != ''">and language = #{language}</if>
+ <if test="version != null ">and version = #{version}</if>
+ <if test="isEnd != null ">and is_end = #{isEnd}</if>
+ <if test="groupid != null and groupid != ''">and groupid = #{groupid}</if>
+ <if test="isabnormal != null ">and isabnormal = #{isabnormal}</if>
+ <if test="warnup != null ">and warnup = #{warnup}</if>
+ <if test="warndown != null ">and warndown = #{warndown}</if>
+ <if test="isupload != null ">and isupload = #{isupload}</if>
+ <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+ <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if>
+ <if test="pid != null ">and pid = #{pid}</if>
+ <if test="guid != null and guid != ''">and guid = #{guid}</if>
+ <if test="nodynamiccruxsJson != null ">and nodynamiccruxs = #{nodynamiccruxsJson}</if>
+ <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if>
+ <if test="appendflag != null">and appendflag = #{appendflag}</if>
+ <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
+ <if test="picturePath != null">and picture_path = #{picturePath}</if>
+ <if test="isException != null">and is_exception = #{isException}</if>
</select>
<select id="selectIvrLibaScriptTargetoptionByTargetoptionid" parameterType="String"
@@ -139,6 +142,7 @@
<if test="picturePath != null">picture_path,</if>
<if test="isEnd != null ">is_end,</if>
<if test="isException != null ">is_exception,</if>
+ <if test="defaultValue != null ">default_value,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">#{id},</if>
@@ -174,6 +178,7 @@
<if test="picturePath != null">#{picturePath},</if>
<if test="isEnd != null ">#{isEnd},</if>
<if test="isException != null ">#{isException},</if>
+ <if test="defaultValue != null ">#{defaultValue},</if>
</trim>
</insert>
@@ -212,6 +217,7 @@
<if test="picturePath != null">picture_path = #{picturePath},</if>
<if test="isEnd != null ">is_end = #{isEnd},</if>
<if test="isException != null ">is_exception = #{isException},</if>
+ <if test="defaultValue != null ">default_value = #{defaultValue},</if>
</trim>
where id = #{id}
</update>
--
Gitblit v1.9.3