liusheng
2024-10-22 580f358ce4e50816211d69ff6e31817b6593d731
smartor/src/main/resources/mapper/smartor/IvrLibaTemplateScriptMapper.xml
@@ -47,12 +47,14 @@
        <result property="branchNextscriptno" column="branch_nextscriptno"/>
        <result property="sort" column="sort"/>
        <result property="score" column="score"/>
        <result property="groupName" column="group_name"/>
    </resultMap>
    <sql id="selectIvrLibaTemplateScriptVo">
        select id,
               scriptno,
               sort,
               group_name,
               branch_flag,
               branch_nextscriptno,
               templateid,
@@ -100,6 +102,7 @@
        <where>
            del_flag=0
            <if test="scriptno != null ">and scriptno = #{scriptno}</if>
            <if test="groupName != null ">and group_name = #{groupName}</if>
            <if test="scriptDesc != null ">and script_desc = #{scriptDesc}</if>
            <if test="templateid != null ">and templateid = #{templateid}</if>
            <if test="scriptPoint != null  and scriptPoint != ''">and script_point = #{scriptPoint}</if>
@@ -192,6 +195,7 @@
            <if test="sort != null ">sort,</if>
            <if test="score != null ">score,</if>
            <if test="ivrtext != null ">ivrtext,</if>
            <if test="groupName != null ">group_name,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="scriptno != null">#{scriptno},</if>
@@ -234,6 +238,7 @@
            <if test="sort != null ">#{sort},</if>
            <if test="score != null ">#{score},</if>
            <if test="ivrtext != null ">#{ivrtext},</if>
            <if test="groupName != null ">#{groupName},</if>
        </trim>
    </insert>
@@ -278,6 +283,7 @@
            <if test="ivrtext != null ">ivrtext = #{ivrtext},</if>
            <if test="branchFlag != null  and branchFlag != ''">branch_flag = #{branchFlag},</if>
            <if test="score != null ">score = #{score},</if>
            <if test="groupName != null ">group_name = #{groupName},</if>
            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                #{branchNextscriptno},
            </if>