陈昶聿
2 天以前 cc3fe1ad9b366533d184d9e239b45f731f014e74
smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
@@ -38,11 +38,13 @@
        <result property="picturePath" column="picture_path"/>
        <result property="isEnd" column="is_end"/>
        <result property="isException" column="is_exception"/>
        <result property="defaultValue" column="default_value"/>
    </resultMap>
    <sql id="selectIvrLibaScriptTargetoptionVo">
        select id,
               targetid,
               default_value,
               is_end,
               is_exception,
               picture_path,
@@ -67,6 +69,7 @@
        where 1=1
            and del_flag = 0
            <if test="targetid != null  and targetid != ''">and targetid = #{targetid}</if>
        <if test="defaultValue != null">and default_value = #{defaultValue}</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>
@@ -139,6 +142,7 @@
            <if test="picturePath != null">picture_path,</if>
            <if test="isEnd != null ">is_end,</if>
            <if test="isException != null ">is_exception,</if>
            <if test="defaultValue != null ">default_value,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -174,6 +178,7 @@
            <if test="picturePath != null">#{picturePath},</if>
            <if test="isEnd != null ">#{isEnd},</if>
            <if test="isException != null ">#{isException},</if>
            <if test="defaultValue != null ">#{defaultValue},</if>
        </trim>
    </insert>
@@ -212,6 +217,7 @@
            <if test="picturePath != null">picture_path = #{picturePath},</if>
            <if test="isEnd != null ">is_end = #{isEnd},</if>
            <if test="isException != null ">is_exception = #{isException},</if>
            <if test="defaultValue != null ">default_value = #{defaultValue},</if>
        </trim>
        where id = #{id}
    </update>