liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
smartor/src/main/resources/mapper/smartor/IvrLibaScriptTargetoptionMapper.xml
@@ -33,12 +33,18 @@
        <result property="guid" column="guid"/>
        <result property="nodynamiccruxsJson" column="nodynamiccruxs"/>
        <result property="dynamiccruxsJson" column="dynamiccruxs"/>
        <result property="appendflag" column="appendflag"/>
        <result property="appenddesc" column="appenddesc"/>
        <result property="picturePath" column="picture_path"/>
    </resultMap>
    <sql id="selectIvrLibaScriptTargetoptionVo">
        select id,
               targetid,
               picture_path,
               targetname,
               appendflag,
               appenddesc,
               scriptid,
               targettype,
               categoryName,
@@ -55,6 +61,7 @@
            resultMap="IvrLibaScriptTargetoptionResult">
        <include refid="selectIvrLibaScriptTargetoptionVo"/>
        <where>
            del_flag=0
            <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>
@@ -79,6 +86,9 @@
            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
            <if test="nodynamiccruxsJson != null ">and nodynamiccruxs = #{nodynamiccruxsJson}</if>
            <if test="dynamiccruxsJson != null ">and dynamiccruxs = #{dynamiccruxsJson}</if>
            <if test="appendflag != null">and appendflag = #{appendflag}</if>
            <if test="appenddesc != null">and appenddesc = #{appenddesc}</if>
            <if test="picturePath != null">and picture_path = #{picturePath}</if>
        </where>
    </select>
@@ -119,6 +129,9 @@
            <if test="guid != null">guid,</if>
            <if test="nodynamiccruxsJson != null ">nodynamiccruxs,</if>
            <if test="dynamiccruxsJson != null ">dynamiccruxs,</if>
            <if test="appendflag != null">appendflag,</if>
            <if test="appenddesc != null">appenddesc,</if>
            <if test="picturePath != null">picture_path,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="id != null">#{id},</if>
@@ -149,6 +162,9 @@
            <if test="guid != null">#{guid},</if>
            <if test="nodynamiccruxsJson != null ">#{nodynamiccruxsJson},</if>
            <if test="dynamiccruxsJson != null ">#{dynamiccruxsJson},</if>
            <if test="appendflag != null">#{appendflag},</if>
            <if test="appenddesc != null">#{appenddesc},</if>
            <if test="picturePath != null">#{picturePath},</if>
        </trim>
    </insert>
@@ -182,6 +198,9 @@
            <if test="guid != null">guid = #{guid},</if>
            <if test="nodynamiccruxsJson != null ">nodynamiccruxs = #{nodynamiccruxsJson},</if>
            <if test="dynamiccruxsJson != null ">dynamiccruxs = #{dynamiccruxsJson},</if>
            <if test="appendflag != null">appendflag = #{appendflag},</if>
            <if test="appenddesc != null">appenddesc = #{appenddesc},</if>
            <if test="picturePath != null">picture_path = #{picturePath},</if>
        </trim>
        where id = #{id}
    </update>
@@ -194,4 +213,4 @@
        where id = #{id}
    </delete>
</mapper>
</mapper>