liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
smartor/src/main/resources/mapper/smartor/SvyTaskScriptMapper.xml
@@ -31,11 +31,11 @@
        <result property="scoretype"    column="scoretype"    />
        <result property="score"    column="score"    />
        <result property="showtype"    column="showtype"    />
        <result property="picturePath"    column="picture_path"    />
        <result property="scriptPicture"    column="script_picture"    />
    </resultMap>
    <sql id="selectSvyTaskScriptVo">
        select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, picture_path from svy_task_script
        select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, script_picture from svy_task_script
    </sql>
    <select id="selectSvyTaskScriptList" parameterType="com.smartor.domain.SvyTaskScript" resultMap="SvyTaskScriptResult">
@@ -98,7 +98,7 @@
            <if test="scoretype != null">scoretype,</if>
            <if test="score != null">score,</if>
            <if test="showtype != null">showtype,</if>
            <if test="picturePath != null">picture_path,</if>
            <if test="scriptPicture != null">script_picture,</if>
         </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="scriptType != null">#{scriptType},</if>
@@ -126,7 +126,7 @@
            <if test="scoretype != null">#{scoretype},</if>
            <if test="score != null">#{score},</if>
            <if test="showtype != null">#{showtype},</if>
            <if test="picturePath != null">#{picturePath},</if>
            <if test="scriptPicture != null">#{scriptPicture},</if>
         </trim>
    </insert>
@@ -159,6 +159,7 @@
            <if test="score != null">score = #{score},</if>
            <if test="showtype != null">showtype = #{showtype},</if>
            <if test="picturePath != null">picture_path = #{picturePath},</if>
            <if test="scriptPicture != null">script_picture = #{scriptPicture},</if>
        </trim>
        where id = #{id}
    </update>