| | |
| | | <mapper namespace="com.smartor.mapper.IvrLibaTemplateTargetMapper"> |
| | | |
| | | <resultMap type="com.smartor.domain.IvrLibaTemplateTarget" id="IvrLibaTemplateTargetResult"> |
| | | <result property="ID" column="ID"/> |
| | | <result property="id" column="id"/> |
| | | <result property="templateQuestionID" column="templateQuestionID"/> |
| | | <result property="templateQuestionNum" column="templateQuestionNum"/> |
| | | <result property="nextQuestionNum" column="nextQuestionNum"/> |
| | |
| | | <result property="targetType" column="targetType"/> |
| | | <result property="categoryName" column="categoryName"/> |
| | | <result property="targetValue" column="targetValue"/> |
| | | <result property="targetID" column="targetID"/> |
| | | <result property="questionTargetID" column="questionTargetID"/> |
| | | <result property="targetid" column="targetid"/> |
| | | <result property="questionTargetid" column="questionTargetid"/> |
| | | <result property="basicRegex" column="basicRegex"/> |
| | | <result property="selfRegex" column="selfRegex"/> |
| | | <result property="regexUsedType" column="regexUsedType"/> |
| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectIvrLibaTemplateTargetVo"> |
| | | select ID, |
| | | select id, |
| | | templateQuestionID, |
| | | templateQuestionNum, |
| | | nextQuestionNum, |
| | |
| | | targetType, |
| | | categoryName, |
| | | targetValue, |
| | | targetID, |
| | | questionTargetID, |
| | | targetid, |
| | | questionTargetid, |
| | | basicRegex, |
| | | selfRegex, |
| | | regexUsedType, language, isEnable, playType, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid |
| | |
| | | '%') |
| | | </if> |
| | | <if test="targetValue != null and targetValue != ''">and targetValue = #{targetValue}</if> |
| | | <if test="targetID != null and targetID != ''">and targetID = #{targetID}</if> |
| | | <if test="questionTargetID != null and questionTargetID != ''">and questionTargetID = #{questionTargetID} |
| | | <if test="targetid != null and targetid != ''">and targetid = #{targetid}</if> |
| | | <if test="questionTargetid != null and questionTargetid != ''">and questionTargetid = #{questionTargetid} |
| | | </if> |
| | | <if test="basicRegex != null and basicRegex != ''">and basicRegex = #{basicRegex}</if> |
| | | <if test="selfRegex != null and selfRegex != ''">and selfRegex = #{selfRegex}</if> |
| | |
| | | |
| | | <select id="selectIvrLibaTemplateTargetByID" parameterType="Long" resultMap="IvrLibaTemplateTargetResult"> |
| | | <include refid="selectIvrLibaTemplateTargetVo"/> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertIvrLibaTemplateTarget" parameterType="com.smartor.domain.IvrLibaTemplateTarget"> |
| | |
| | | <if test="targetType != null">targetType,</if> |
| | | <if test="categoryName != null">categoryName,</if> |
| | | <if test="targetValue != null">targetValue,</if> |
| | | <if test="targetID != null">targetID,</if> |
| | | <if test="questionTargetID != null">questionTargetID,</if> |
| | | <if test="targetid != null">targetid,</if> |
| | | <if test="questionTargetid != null">questionTargetid,</if> |
| | | <if test="basicRegex != null">basicRegex,</if> |
| | | <if test="selfRegex != null">selfRegex,</if> |
| | | <if test="regexUsedType != null">regexUsedType,</if> |
| | |
| | | <if test="targetType != null">#{targetType},</if> |
| | | <if test="categoryName != null">#{categoryName},</if> |
| | | <if test="targetValue != null">#{targetValue},</if> |
| | | <if test="targetID != null">#{targetID},</if> |
| | | <if test="questionTargetID != null">#{questionTargetID},</if> |
| | | <if test="targetid != null">#{targetid},</if> |
| | | <if test="questionTargetid != null">#{questionTargetid},</if> |
| | | <if test="basicRegex != null">#{basicRegex},</if> |
| | | <if test="selfRegex != null">#{selfRegex},</if> |
| | | <if test="regexUsedType != null">#{regexUsedType},</if> |
| | |
| | | <if test="targetType != null">targetType = #{targetType},</if> |
| | | <if test="categoryName != null">categoryName = #{categoryName},</if> |
| | | <if test="targetValue != null">targetValue = #{targetValue},</if> |
| | | <if test="targetID != null">targetID = #{targetID},</if> |
| | | <if test="questionTargetID != null">questionTargetID = #{questionTargetID},</if> |
| | | <if test="targetid != null">targetID = #{targetid},</if> |
| | | <if test="questionTargetid != null">questionTargetid = #{questionTargetid},</if> |
| | | <if test="basicRegex != null">basicRegex = #{basicRegex},</if> |
| | | <if test="selfRegex != null">selfRegex = #{selfRegex},</if> |
| | | <if test="regexUsedType != null">regexUsedType = #{regexUsedType},</if> |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <update id="deleteIvrLibaTemplateTargetByID" parameterType="Long"> |
| | |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = 1,</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteIvrLibaTemplateTargetByIDs" parameterType="String"> |
| | | delete from ivr_liba_template_target where ID in |
| | | <foreach item="ID" collection="array" open="(" separator="," close=")"> |
| | | #{ID} |
| | | delete from ivr_liba_template_target where id in |
| | | <foreach item="id" collection="array" open="(" separator="," close=")"> |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | </mapper> |