liusheng
2024-12-02 57e82dd493a25e887894afef2f0e0223f1e546bd
smartor/src/main/resources/mapper/smartor/IvrTaskTemplateScriptMapper.xml
@@ -46,7 +46,8 @@
        <result property="sort" column="sort"/>
        <result property="score" column="score"/>
        <result property="ivrtext" column="ivrtext"/>
        <result property="groupName" column="  group_name"/>
        <result property="groupName" column="group_name"/>
        <result property="scriptTopic" column="script_topic"/>
    </resultMap>
    <sql id="selectIvrTaskTemplateScriptVo">
@@ -55,6 +56,7 @@
               sort,
               ivrtext,
               script_type,
               script_topic,
               score,
               branch_flag,
               branch_nextscriptno,
@@ -82,6 +84,7 @@
            del_flag=0
            <if test="taskid != null ">and taskid = #{taskid}</if>
            <if test="score != null ">and score = #{score}</if>
            <if test="scriptTopic != null ">and script_topic = #{scriptTopic}</if>
            <if test="ivrtext != null ">and ivrtext = #{ivrtext}</if>
            <if test="sort != null ">and sort = #{sort}</if>
            <if test="templateID != null ">and templateID = #{templateID}</if>
@@ -171,6 +174,7 @@
            <if test="nextScriptno != null  and nextScriptno != ''">next_scriptno,</if>
            <if test="score != null ">score,</if>
            <if test="ivrtext != null ">ivrtext,</if>
            <if test="scriptTopic != null ">script_topic,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="taskid != null">#{taskid},</if>
@@ -213,6 +217,7 @@
            <if test="nextScriptno != null  and nextScriptno != ''">#{nextScriptno},</if>
            <if test="score != null ">#{score},</if>
            <if test="ivrtext != null ">#{ivrtext},</if>
            <if test="scriptTopic != null ">#{scriptTopic},</if>
        </trim>
    </insert>
@@ -261,18 +266,18 @@
            <if test="nextScriptno != null  and nextScriptno != ''">next_scriptno = #{nextScriptno},</if>
            <if test="score != null">score = #{score},</if>
            <if test="ivrtext != null">ivrtext = #{ivrtext},</if>
            <if test="scriptTopic != null ">script_topic = #{scriptTopic},</if>
        </trim>
        where id = #{id}
    </update>
    <delete id="deleteIvrTaskTemplateScriptByID" parameterType="Long">
        delete
        from ivr_task_template_script
        update  ivr_task_template_script set del_flag=1
        where ID = #{ID}
    </delete>
    <delete id="deleteIvrTaskTemplateScriptByIDs" parameterType="String">
        delete from ivr_task_template_script where id in
        update ivr_task_template_script set del_flag=1 where id in
        <foreach item="id" collection="array" open="(" separator="," close=")">
            #{id}
        </foreach>