liusheng
2023-12-28 ac79f032745c975eb77d6fb148ed390f2373559e
smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
@@ -7,6 +7,7 @@
    <resultMap type="com.smartor.domain.IvrLibaScriptTargetoption" id="IvrLibaScriptTargetoptionResult">
        <result property="id" column="id"/>
        <result property="targetid" column="targetid"/>
        <result property="targetname" column="targetname"/>
        <result property="scriptid" column="scriptid"/>
        <result property="targettype" column="targettype"/>
        <result property="categoryName" column="categoryName"/>
@@ -34,6 +35,7 @@
    <sql id="selectIvrLibaScriptTargetoptionVo">
        select id,
               targetid,
               targetname,
               scriptid,
               targettype,
               categoryName,
@@ -48,6 +50,7 @@
        <include refid="selectIvrLibaScriptTargetoptionVo"/>
        <where>
            <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},
@@ -81,6 +84,7 @@
        <trim prefix="(" suffix=")" suffixOverrides=",">
            <if test="id != null">id,</if>
            <if test="targetid != null and targetid != ''">targetid,</if>
            <if test="targetname != null and targetname != ''">targetname,</if>
            <if test="scriptid != null">scriptid,</if>
            <if test="targettype != null and targettype != ''">targettype,</if>
            <if test="categoryName != null and categoryName != ''">categoryName,</if>
@@ -107,6 +111,7 @@
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
            <if test="targetid != null and targetid != ''">#{targetid},</if>
            <if test="targetname != null and targetname != ''">#{targetname},</if>
            <if test="scriptid != null ">#{scriptid},</if>
            <if test="targettype != null and targettype != ''">#{targettype},</if>
            <if test="categoryName != null and categoryName != ''">#{categoryName},</if>
@@ -136,6 +141,7 @@
        update ivr_liba_script_targetoption
        <trim prefix="SET" suffixOverrides=",">
            <if test="targetid != null and targetid != ''">targetid = #{targetid},</if>
            <if test="targetname != null and targetname != ''">targetname = #{targetname},</if>
            <if test="scriptid != null">scriptid = #{scriptid},</if>
            <if test="targettype != null and targettype != ''">targettype = #{targettype},</if>
            <if test="categoryName != null and categoryName != ''">categoryName = #{categoryName},</if>