| | |
| | | <result property="questiontitle" column="questiontitle"/> |
| | | <result property="questionText" column="questionText"/> |
| | | <result property="questionvoice" column="questionvoice"/> |
| | | <result property="nomatchtext" column="nomatchtext"/> |
| | | <result property="noMatchText" column="nomatchtext"/> |
| | | <result property="nomatchvoice" column="nomatchvoice"/> |
| | | <result property="sliencetext" column="sliencetext"/> |
| | | <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="noClearlyText" column="noclearlytext"/> |
| | | <result property="noclearlyvoice" column="noclearlyvoice"/> |
| | | <result property="questiontype" column="questiontype"/> |
| | | <result property="targetid" column="targetid"/> |
| | |
| | | <result property="deptNames" column="deptNames"/> |
| | | <result property="deptIds" column="deptIds"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="valueType" column="value_type"/> |
| | | <result property="reply" column="reply"/> |
| | | <result property="targetdesc" column="targetdesc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaScriptVo"> |
| | | select id, |
| | | suitway, |
| | | targetdesc, |
| | | campus, |
| | | deptNames, |
| | | deptIds, |
| | | questiontitle, |
| | | isenable, |
| | | value_type, |
| | | reply, |
| | | isAvailable, |
| | | questionText, |
| | | questionvoice, |
| | |
| | | <include refid="selectIvrLibaScriptVo"/> |
| | | <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="questiontitle != null and questiontitle != ''">and questiontitle like concat('%', #{questiontitle}, '%')</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="valueType != null ">and value_type = #{valueType}</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="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="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="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="deptNames != null">deptNames,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="isAvailable != null">isAvailable,</if> |
| | | <if test="isenable != null">isenable,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="questionText != null">questionText,</if> |
| | | <if test="questionvoice != null">questionvoice,</if> |
| | | <if test="nomatchtext != null">nomatchtext,</if> |
| | | <if test="noMatchText != null">nomatchtext,</if> |
| | | <if test="nomatchvoice != null">nomatchvoice,</if> |
| | | <if test="sliencetext != null">sliencetext,</if> |
| | | <if test="slienceText != null">sliencetext,</if> |
| | | <if test="sliencevoice != null">sliencevoice,</if> |
| | | <if test="submoduletext != null">submoduletext,</if> |
| | | <if test="submodulevoice != null">submodulevoice,</if> |
| | | <if test="noclearlytext != null">noclearlytext,</if> |
| | | <if test="noClearlyText != null">noclearlytext,</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice,</if> |
| | | <if test="questiontype != null">questiontype,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="valueType != null">value_type,</if> |
| | | <if test="reply != null">reply,</if> |
| | | <if test="targetdesc != null">targetdesc,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="questiontitle != null">#{questiontitle},</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="reply != null">#{reply},</if> |
| | | <if test="questionText != null">#{questionText},</if> |
| | | <if test="questionvoice != null">#{questionvoice},</if> |
| | | <if test="nomatchtext != null">#{nomatchtext},</if> |
| | | <if test="noMatchText != null">#{noMatchText},</if> |
| | | <if test="nomatchvoice != null">#{nomatchvoice},</if> |
| | | <if test="sliencetext != null">#{sliencetext},</if> |
| | | <if test="slienceText != null">#{slienceText},</if> |
| | | <if test="sliencevoice != null">#{sliencevoice},</if> |
| | | <if test="submoduletext != null">#{submoduletext},</if> |
| | | <if test="submodulevoice != null">#{submodulevoice},</if> |
| | | <if test="noclearlytext != null">#{noclearlytext},</if> |
| | | <if test="noClearlyText != null">#{noClearlyText},</if> |
| | | <if test="noclearlyvoice != null">#{noclearlyvoice},</if> |
| | | <if test="questiontype != null">#{questiontype},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="valueType != null">#{valueType},</if> |
| | | <if test="reply != null">#{reply},</if> |
| | | <if test="targetdesc != null">#{targetdesc},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <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="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="questionText != null">questionText = #{questionText},</if> |
| | | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> |
| | | <if test="nomatchtext != null">nomatchtext = #{nomatchtext},</if> |
| | | <if test="noMatchText != null">nomatchtext = #{noMatchText},</if> |
| | | <if test="nomatchvoice != null">nomatchvoice = #{nomatchvoice},</if> |
| | | <if test="sliencetext != null">sliencetext = #{sliencetext},</if> |
| | | <if test="slienceText != null">sliencetext = #{slienceText},</if> |
| | | <if test="sliencevoice != null">sliencevoice = #{sliencevoice},</if> |
| | | <if test="submoduletext != null">submoduletext = #{submoduletext},</if> |
| | | <if test="submodulevoice != null">submodulevoice = #{submodulevoice},</if> |
| | | <if test="noclearlytext != null">noclearlytext = #{noclearlytext},</if> |
| | | <if test="noClearlyText != null">noclearlytext = #{noClearlyText},</if> |
| | | <if test="noclearlyvoice != null">noclearlyvoice = #{noclearlyvoice},</if> |
| | | <if test="questiontype != null">questiontype = #{questiontype},</if> |
| | | <if test="targetid != null">targetid = #{targetid},</if> |
| | |
| | | <if test="deptIds != null">deptIds = #{deptIds},</if> |
| | | <if test="campus != null">campus = #{campus},</if> |
| | | <if test="tag != null">tag = #{tag},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="reply != null">reply = #{reply},</if> |
| | | <if test="targetdesc != null">targetdesc = #{targetdesc},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | </mapper> |
| | | </mapper> |