From ac79f032745c975eb77d6fb148ed390f2373559e Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 28 十二月 2023 17:58:52 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/IvrLibaScriptMapper.xml | 53 ++++++++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 48 insertions(+), 5 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptMapper.xml
index e2b5dfa..46ab1a4 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptMapper.xml
@@ -40,12 +40,24 @@
<result property="orgid" column="orgid"/>
<result property="pid" column="pid"/>
<result property="guid" column="guid"/>
+ <result property="parameter" column="parameter"/>
+ <result property="suitway" column="suitway"/>
+ <result property="isAvailable" column="isAvailable"/>
+ <result property="campus" column="campus"/>
+ <result property="deptNames" column="deptNames"/>
+ <result property="deptIds" column="deptIds"/>
+ <result property="tag" column="tag"/>
</resultMap>
<sql id="selectIvrLibaScriptVo">
select id,
+ suitway,
+ campus,
+ deptNames,
+ deptIds,
questiontitle,
isenable,
+ isAvailable,
questiontext,
questionvoice,
nomatchtext,
@@ -59,7 +71,8 @@
questiontype,
targetid,
targetname,
- targetoptions, language, remark, version, usestate, adduserid, addtime, modifyuserid, modifytime, assortid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid
+ tag,
+ targetoptions, language, remark, version, usestate, adduserid, addtime, modifyuserid, modifytime, assortid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, parameter
from ivr_liba_script
</sql>
@@ -69,6 +82,12 @@
<where>
<if test="id != null ">and id = #{id}</if>
<if test="questiontitle != null and questiontitle != ''">and questiontitle = #{questiontitle}</if>
+ <if test="deptIds != null and deptIds != ''">and deptIds = #{deptIds}</if>
+ <if test="deptNames != null and deptNames != ''">and deptNames like concat('%', #{deptNames}, '%')</if>
+ <if test="campus != null and campus != ''">and campus = #{campus}</if>
+ <if test="tag != null and tag != ''">and tag = #{tag}</if>
+ <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if>
+ <if test="isAvailable != null and isAvailable != ''">and isAvailable = #{isAvailable}</if>
<if test="isenable != null ">and isenable = #{isenable}</if>
<if test="questiontext != null and questiontext != ''">and questiontext = #{questiontext}</if>
<if test="questionvoice != null and questionvoice != ''">and questionvoice = #{questionvoice}</if>
@@ -97,6 +116,7 @@
<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="parameter != null and parameter != ''">and parameter = #{parameter}</if>
</where>
</select>
@@ -110,6 +130,12 @@
insert into ivr_liba_script
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="questiontitle != null">questiontitle,</if>
+ <if test="suitway != null">suitway,</if>
+ <if test="campus != null">campus,</if>
+ <if test="deptIds != null">deptIds,</if>
+ <if test="deptNames != null">deptNames,</if>
+ <if test="tag != null">tag,</if>
+ <if test="isAvailable != null">isAvailable,</if>
<if test="isenable != null">isenable,</if>
<if test="questiontext != null">questiontext,</if>
<if test="questionvoice != null">questionvoice,</if>
@@ -144,9 +170,16 @@
<if test="orgid != null">orgid,</if>
<if test="pid != null">pid,</if>
<if test="guid != null">guid,</if>
+ <if test="parameter != null">parameter,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="questiontitle != null">#{questiontitle},</if>
+ <if test="suitway != null">#{suitway},</if>
+ <if test="campus != null">#{campus},</if>
+ <if test="deptIds != null">#{deptIds},</if>
+ <if test="deptNames != null">#{deptNames},</if>
+ <if test="tag != null">#{tag},</if>
+ <if test="isAvailable != null">#{isAvailable},</if>
<if test="isenable != null">#{isenable},</if>
<if test="questiontext != null">#{questiontext},</if>
<if test="questionvoice != null">#{questionvoice},</if>
@@ -181,6 +214,7 @@
<if test="orgid != null">#{orgid},</if>
<if test="pid != null">#{pid},</if>
<if test="guid != null">#{guid},</if>
+ <if test="parameter != null">#{parameter},</if>
</trim>
</insert>
@@ -188,6 +222,8 @@
update ivr_liba_script
<trim prefix="SET" suffixOverrides=",">
<if test="questiontitle != null">questiontitle = #{questiontitle},</if>
+ <if test="suitway != null">suitway = #{suitway},</if>
+ <if test="isAvailable != null">isAvailable = #{isAvailable},</if>
<if test="isenable != null">isenable = #{isenable},</if>
<if test="questiontext != null">questiontext = #{questiontext},</if>
<if test="questionvoice != null">questionvoice = #{questionvoice},</if>
@@ -222,14 +258,21 @@
<if test="orgid != null">orgid = #{orgid},</if>
<if test="pid != null">pid = #{pid},</if>
<if test="guid != null">guid = #{guid},</if>
+ <if test="parameter != null">parameter = #{parameter},</if>
+ <if test="deptNames != null">deptNames = #{deptNames},</if>
+ <if test="deptIds != null">deptIds = #{deptIds},</if>
+ <if test="campus != null">campus = #{campus},</if>
+ <if test="tag != null">tag = #{tag},</if>
</trim>
where id = #{id}
</update>
- <delete id="deleteIvrLibaScriptByQuestionid" parameterType="Integer">
- delete
- from ivr_liba_script
+ <update id="deleteIvrLibaScriptByQuestionid" parameterType="Integer">
+ update ivr_liba_script
+ <trim prefix="SET" suffixOverrides=",">
+ <if test="delFlag != null and delFlag != ''">del_flag = 1,</if>
+ </trim>
where id = #{id}
- </delete>
+ </update>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.3