liusheng
2025-11-10 ad53e4af4e4e238453d7613530b501540df915e1
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
@@ -7,6 +7,7 @@
    <resultMap type="com.smartor.domain.SvyTaskTemplateScript" id="SvyTaskTemplateScriptResult">
        <result property="id" column="id"/>
        <result property="taskid" column="taskid"/>
        <result property="ishide" column="ishide"/>
        <result property="scriptno" column="scriptno"/>
        <result property="templateID" column="templateID"/>
        <result property="scriptid" column="scriptid"/>
@@ -49,6 +50,7 @@
    <sql id="selectSvyTaskTemplateScriptVo">
        select id,
               sort,
               ishide,
               prompt,
               group_name,
               branch_flag,
@@ -70,6 +72,7 @@
        <include refid="selectSvyTaskTemplateScriptVo"/>
        <where>
            <if test="taskid != null ">and taskid = #{taskid}</if>
            <if test="ishide != null ">and ishide = #{ishide}</if>
            <if test="scriptno != null ">and scriptno = #{scriptno}</if>
            <if test="templateID != null ">and templateID = #{templateID}</if>
            <if test="scriptid != null ">and scriptid = #{scriptid}</if>
@@ -153,6 +156,7 @@
            <if test="score != null ">score,</if>
            <if test="prompt != null ">prompt,</if>
            <if test="groupName != null ">group_name,</if>
            <if test="ishide != null ">ishide,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="taskid != null">#{taskid},</if>
@@ -192,6 +196,7 @@
            <if test="score != null ">#{score},</if>
            <if test="prompt != null ">#{prompt},</if>
            <if test="groupName != null ">#{groupName},</if>
            <if test="ishide != null ">#{ishide},</if>
        </trim>
    </insert>
@@ -237,6 +242,7 @@
            <if test="score != null">score = #{score},</if>
            <if test="prompt != null">prompt = #{prompt},</if>
            <if test="groupName != null ">group_name = #{groupName},</if>
            <if test="ishide != null ">ishide = #{ishide},</if>
        </trim>
        where id = #{d}
    </update>