| | |
| | | <?xml version="1.0" encoding="UTF-8" ?> |
| | | <!DOCTYPE mapper |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.IvrLibaScriptMapper"> |
| | | |
| | | <resultMap type="IvrLibaScript" id="IvrLibaScriptResult"> |
| | | <result property="questionid" column="questionid" /> |
| | | <result property="questionpoint" column="questionpoint" /> |
| | | <result property="questiontext" column="questiontext" /> |
| | | <result property="questionvoice" column="questionvoice" /> |
| | | <result property="nomatchtext" column="nomatchtext" /> |
| | | <result property="nomatchvoice" column="nomatchvoice" /> |
| | | <result property="sliencetext" column="sliencetext" /> |
| | | <result property="sliencevoice" column="sliencevoice" /> |
| | | <result property="submoduletext" column="submoduletext" /> |
| | | <result property="submodulevoice" column="submodulevoice" /> |
| | | <result property="noclearlytext" column="noclearlytext" /> |
| | | <result property="noclearlyvoice" column="noclearlyvoice" /> |
| | | <result property="questiontype" column="questiontype" /> |
| | | <result property="categoryname" column="categoryname" /> |
| | | <result property="targetoptions" column="targetoptions" /> |
| | | <result property="language" column="language" /> |
| | | <result property="note" column="note" /> |
| | | <result property="version" column="version" /> |
| | | <result property="isenable" column="isenable" /> |
| | | <result property="isdel" column="isdel" /> |
| | | <result property="adduserid" column="adduserid" /> |
| | | <result property="addtime" column="addtime" /> |
| | | <result property="modifyuserid" column="modifyuserid" /> |
| | | <result property="modifytime" column="modifytime" /> |
| | | <result property="groupid" column="groupid" /> |
| | | <result property="delFlag" column="del_flag" /> |
| | | <result property="updateBy" column="update_by" /> |
| | | <result property="updateTime" column="update_time" /> |
| | | <result property="createBy" column="create_by" /> |
| | | <result property="createTime" column="create_time" /> |
| | | <result property="isupload" column="isupload" /> |
| | | <result property="uploadTime" column="upload_time" /> |
| | | <result property="orgid" column="orgid" /> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaScript" id="IvrLibaScriptResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="questiontitle" column="questiontitle"/> |
| | | <result property="questiontext" column="questiontext"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="nomatchtext" column="nomatchtext"/> |
| | | <result property="nomatchvoice" column="nomatchvoice"/> |
| | | <result property="sliencetext" column="sliencetext"/> |
| | | <result property="sliencevoice" column="sliencevoice"/> |
| | | <result property="submoduletext" column="submoduletext"/> |
| | | <result property="submodulevoice" column="submodulevoice"/> |
| | | <result property="noclearlytext" column="noclearlytext"/> |
| | | <result property="noclearlyvoice" column="noclearlyvoice"/> |
| | | <result property="questiontype" column="questiontype"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="language" column="language"/> |
| | | <result property="remark" column="remark"/> |
| | | <result property="version" column="version"/> |
| | | <result property="usestate" column="usestate"/> |
| | | <result property="adduserid" column="adduserid"/> |
| | | <result property="addtime" column="addtime"/> |
| | | <result property="modifyuserid" column="modifyuserid"/> |
| | | <result property="modifytime" column="modifytime"/> |
| | | <result property="assortid" column="assortid"/> |
| | | <result property="delFlag" column="del_flag"/> |
| | | <result property="updateBy" column="update_by"/> |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="createBy" column="create_by"/> |
| | | <result property="createTime" column="create_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="orgid" column="orgid"/> |
| | | <result property="pid" column="pid"/> |
| | | <result property="guid" column="guid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptVo"> |
| | | select questionid, questionpoint, questiontext, questionvoice, nomatchtext, nomatchvoice, sliencetext, sliencevoice, submoduletext, submodulevoice, noclearlytext, noclearlyvoice, questiontype, categoryname, targetoptions, language, note, version, isenable, isdel, adduserid, addtime, modifyuserid, modifytime, groupid, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid from ivr_liba_script |
| | | select id, |
| | | questiontitle, |
| | | isenable, |
| | | questiontext, |
| | | questionvoice, |
| | | nomatchtext, |
| | | nomatchvoice, |
| | | sliencetext, |
| | | sliencevoice, |
| | | submoduletext, |
| | | submodulevoice, |
| | | noclearlytext, |
| | | noclearlyvoice, |
| | | 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 |
| | | from ivr_liba_script |
| | | </sql> |
| | | |
| | | <select id="selectIvrLibaScriptList" parameterType="IvrLibaScript" resultMap="IvrLibaScriptResult"> |
| | | <select id="selectIvrLibaScriptList" parameterType="com.smartor.domain.IvrLibaScript" |
| | | resultMap="IvrLibaScriptResult"> |
| | | <include refid="selectIvrLibaScriptVo"/> |
| | | <where> |
| | | <if test="questionpoint != null and questionpoint != ''"> and questionpoint = #{questionpoint}</if> |
| | | <if test="questiontext != null and questiontext != ''"> and questiontext = #{questiontext}</if> |
| | | <if test="questionvoice != null and questionvoice != ''"> and questionvoice = #{questionvoice}</if> |
| | | <if test="nomatchtext != null and nomatchtext != ''"> and nomatchtext = #{nomatchtext}</if> |
| | | <if test="nomatchvoice != null and nomatchvoice != ''"> and nomatchvoice = #{nomatchvoice}</if> |
| | | <if test="sliencetext != null and sliencetext != ''"> and sliencetext = #{sliencetext}</if> |
| | | <if test="sliencevoice != null and sliencevoice != ''"> and sliencevoice = #{sliencevoice}</if> |
| | | <if test="submoduletext != null and submoduletext != ''"> and submoduletext = #{submoduletext}</if> |
| | | <if test="submodulevoice != null and submodulevoice != ''"> and submodulevoice = #{submodulevoice}</if> |
| | | <if test="noclearlytext != null and noclearlytext != ''"> and noclearlytext = #{noclearlytext}</if> |
| | | <if test="noclearlyvoice != null and noclearlyvoice != ''"> and noclearlyvoice = #{noclearlyvoice}</if> |
| | | <if test="questiontype != null and questiontype != ''"> and questiontype = #{questiontype}</if> |
| | | <if test="categoryname != null and categoryname != ''"> and categoryname like concat('%', #{categoryname}, '%')</if> |
| | | <if test="targetoptions != null and targetoptions != ''"> and targetoptions = #{targetoptions}</if> |
| | | <if test="language != null and language != ''"> and language = #{language}</if> |
| | | |
| | | <if test="note != null and note != ''"> and note = #{note}</if> |
| | | <if test="version != null "> and version = #{version}</if> |
| | | <if test="isenable != null "> and isenable = #{isenable}</if> |
| | | <if test="isdel != null "> and isdel = #{isdel}</if> |
| | | <if test="adduserid != null and adduserid != ''"> and adduserid = #{adduserid}</if> |
| | | <if test="addtime != null "> and addtime = #{addtime}</if> |
| | | <if test="modifyuserid != null and modifyuserid != ''"> and modifyuserid = #{modifyuserid}</if> |
| | | <if test="modifytime != null "> and modifytime = #{modifytime}</if> |
| | | <if test="groupid != null and groupid != ''"> and groupid = #{groupid}</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> |
| | | <where> |
| | | <if test="id != null ">and id = #{id}</if> |
| | | <if test="questiontitle != null and questiontitle != ''">and questiontitle = #{questiontitle}</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> |
| | | <if test="nomatchtext != null and nomatchtext != ''">and nomatchtext = #{nomatchtext}</if> |
| | | <if test="nomatchvoice != null and nomatchvoice != ''">and nomatchvoice = #{nomatchvoice}</if> |
| | | <if test="sliencetext != null and sliencetext != ''">and sliencetext = #{sliencetext}</if> |
| | | <if test="sliencevoice != null and sliencevoice != ''">and sliencevoice = #{sliencevoice}</if> |
| | | <if test="submoduletext != null and submoduletext != ''">and submoduletext = #{submoduletext}</if> |
| | | <if test="submodulevoice != null and submodulevoice != ''">and submodulevoice = #{submodulevoice}</if> |
| | | <if test="noclearlytext != null and noclearlytext != ''">and noclearlytext = #{noclearlytext}</if> |
| | | <if test="noclearlyvoice != null and noclearlyvoice != ''">and noclearlyvoice = #{noclearlyvoice}</if> |
| | | <if test="questiontype != null and questiontype != ''">and questiontype = #{questiontype}</if> |
| | | <if test="targetid != null ">and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="language != null and language != ''">and language = #{language}</if> |
| | | <if test="version != null and version != ''">and version = #{version}</if> |
| | | <if test="usestate != null ">and usestate = #{usestate}</if> |
| | | <if test="adduserid != null and adduserid != ''">and adduserid = #{adduserid}</if> |
| | | <if test="addtime != null ">and addtime = #{addtime}</if> |
| | | <if test="modifyuserid != null and modifyuserid != ''">and modifyuserid = #{modifyuserid}</if> |
| | | <if test="modifytime != null ">and modifytime = #{modifytime}</if> |
| | | <if test="assortid != null and assortid != ''">and assortid = #{assortid}</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> |
| | | </where> |
| | | </select> |
| | | |
| | | |
| | | <select id="selectIvrLibaScriptByQuestionid" parameterType="String" resultMap="IvrLibaScriptResult"> |
| | | <include refid="selectIvrLibaScriptVo"/> |
| | | where questionid = #{questionid} |
| | | where id = #{questionid} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaScript" parameterType="IvrLibaScript"> |
| | | |
| | | <insert id="insertIvrLibaScript" parameterType="com.smartor.domain.IvrLibaScript" useGeneratedKeys="true" |
| | | keyProperty="id"> |
| | | insert into ivr_liba_script |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="questionid != null">questionid,</if> |
| | | <if test="questionpoint != null">questionpoint,</if> |
| | | <if test="questiontitle != null">questiontitle,</if> |
| | | <if test="isenable != null">isenable,</if> |
| | | <if test="questiontext != null">questiontext,</if> |
| | | <if test="questionvoice != null">questionvoice,</if> |
| | | <if test="nomatchtext != null">nomatchtext,</if> |
| | |
| | | <if test="noclearlytext != null">noclearlytext,</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice,</if> |
| | | <if test="questiontype != null">questiontype,</if> |
| | | <if test="categoryname != null">categoryname,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="targetname != null">targetname,</if> |
| | | <if test="targetoptions != null">targetoptions,</if> |
| | | <if test="language != null">language,</if> |
| | | <if test="note != null">note,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="version != null">version,</if> |
| | | <if test="isenable != null">isenable,</if> |
| | | <if test="isdel != null">isdel,</if> |
| | | <if test="usestate != null">usestate,</if> |
| | | <if test="adduserid != null">adduserid,</if> |
| | | <if test="addtime != null">addtime,</if> |
| | | <if test="modifyuserid != null">modifyuserid,</if> |
| | | <if test="modifytime != null">modifytime,</if> |
| | | <if test="groupid != null">groupid,</if> |
| | | <if test="assortid != null">assortid,</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag,</if> |
| | | <if test="updateBy != null">update_by,</if> |
| | | <if test="updateTime != null">update_time,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="orgid != null">orgid,</if> |
| | | </trim> |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="questionid != null">#{questionid},</if> |
| | | <if test="questionpoint != null">#{questionpoint},</if> |
| | | <if test="questiontitle != null">#{questiontitle},</if> |
| | | <if test="isenable != null">#{isenable},</if> |
| | | <if test="questiontext != null">#{questiontext},</if> |
| | | <if test="questionvoice != null">#{questionvoice},</if> |
| | | <if test="nomatchtext != null">#{nomatchtext},</if> |
| | |
| | | <if test="noclearlytext != null">#{noclearlytext},</if> |
| | | <if test="noclearlyvoice != null">#{noclearlyvoice},</if> |
| | | <if test="questiontype != null">#{questiontype},</if> |
| | | <if test="categoryname != null">#{categoryname},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="targetname != null">#{targetname},</if> |
| | | <if test="targetoptions != null">#{targetoptions},</if> |
| | | <if test="language != null">#{language},</if> |
| | | <if test="note != null">#{note},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="version != null">#{version},</if> |
| | | <if test="isenable != null">#{isenable},</if> |
| | | <if test="isdel != null">#{isdel},</if> |
| | | <if test="usestate != null">#{usestate},</if> |
| | | <if test="adduserid != null">#{adduserid},</if> |
| | | <if test="addtime != null">#{addtime},</if> |
| | | <if test="modifyuserid != null">#{modifyuserid},</if> |
| | | <if test="modifytime != null">#{modifytime},</if> |
| | | <if test="groupid != null">#{groupid},</if> |
| | | <if test="assortid != null">#{assortid},</if> |
| | | <if test="delFlag != null and delFlag != ''">#{delFlag},</if> |
| | | <if test="updateBy != null">#{updateBy},</if> |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="orgid != null">#{orgid},</if> |
| | | </trim> |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateIvrLibaScript" parameterType="IvrLibaScript"> |
| | | <update id="updateIvrLibaScript" parameterType="com.smartor.domain.IvrLibaScript"> |
| | | update ivr_liba_script |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="questionpoint != null">questionpoint = #{questionpoint},</if> |
| | | <if test="questiontitle != null">questiontitle = #{questiontitle},</if> |
| | | <if test="isenable != null">isenable = #{isenable},</if> |
| | | <if test="questiontext != null">questiontext = #{questiontext},</if> |
| | | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> |
| | | <if test="nomatchtext != null">nomatchtext = #{nomatchtext},</if> |
| | |
| | | <if test="noclearlytext != null">noclearlytext = #{noclearlytext},</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice = #{noclearlyvoice},</if> |
| | | <if test="questiontype != null">questiontype = #{questiontype},</if> |
| | | <if test="categoryname != null">categoryname = #{categoryname},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | | <if test="targetname != null">targetname = #{targetname},</if> |
| | | <if test="targetoptions != null">targetoptions = #{targetoptions},</if> |
| | | <if test="language != null">language = #{language},</if> |
| | | <if test="note != null">note = #{note},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="version != null">version = #{version},</if> |
| | | <if test="isenable != null">isenable = #{isenable},</if> |
| | | <if test="isdel != null">isdel = #{isdel},</if> |
| | | <if test="usestate != null">usestate = #{usestate},</if> |
| | | <if test="adduserid != null">adduserid = #{adduserid},</if> |
| | | <if test="addtime != null">addtime = #{addtime},</if> |
| | | <if test="modifyuserid != null">modifyuserid = #{modifyuserid},</if> |
| | | <if test="modifytime != null">modifytime = #{modifytime},</if> |
| | | <if test="groupid != null">groupid = #{groupid},</if> |
| | | <if test="assortid != null">assortid = #{assortid},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where questionid = #{questionid} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaScriptByQuestionid" parameterType="String"> |
| | | delete from ivr_liba_script where questionid = #{questionid} |
| | | <delete id="deleteIvrLibaScriptByQuestionid" parameterType="Integer"> |
| | | delete |
| | | from ivr_liba_script |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteIvrLibaScriptByQuestionids" parameterType="String"> |
| | | delete from ivr_liba_script where questionid in |
| | | <foreach item="questionid" collection="array" open="(" separator="," close=")"> |
| | | #{questionid} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |