liusheng
2024-09-04 9526971c403417c1c007804f24884c443b9e6cd7
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateTargetoptionMapper.xml
@@ -40,11 +40,16 @@
        <result property="optionCode" column="option_code"/>
        <result property="appendflag" column="appendflag"/>
        <result property="appenddesc" column="appenddesc"/>
        <result property="score" column="score"/>
        <result property="score" column="score"/>
        <result property="prompt" column="prompt"/>
    </resultMap>
    <sql id="selectSvyTaskTemplateTargetoptionVo">
        select id,
               option_code,
               score,
               prompt,
               appendflag,
               appenddesc,
               taskid,
@@ -65,6 +70,8 @@
        <include refid="selectSvyTaskTemplateTargetoptionVo"/>
        <where>
            <if test="taskid != null ">and taskid = #{taskid}</if>
            <if test="score != null ">and score = #{score}</if>
            <if test="prompt != null ">and prompt = #{prompt}</if>
            <if test="templateID != null ">and templateID = #{templateID}</if>
            <if test="targetid != null ">and targetid = #{targetid}</if>
            <if test="targetname != null  and targetname != ''">and targetname like concat('%', #{targetname}, '%')</if>
@@ -142,6 +149,8 @@
            <if test="optionCode != null">option_code,</if>
            <if test="appendflag != null">appendflag,</if>
            <if test="appenddesc != null">appenddesc,</if>
            <if test="score != null">score,</if>
            <if test="prompt != null">prompt,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -176,9 +185,11 @@
            <if test="dynamiccruxs != null">#{dynamiccruxsJson},</if>
            <if test="nextQuestion != null">#{nextQuestion},</if>
            <if test="picturePath != null">#{picturePath},</if>
            <if test="optionCode != null">#{optionCode}</if>
            <if test="appendflag != null">#{appendflag}</if>
            <if test="appenddesc != null">#{appenddesc}</if>
            <if test="optionCode != null">#{optionCode},</if>
            <if test="appendflag != null">#{appendflag},</if>
            <if test="appenddesc != null">#{appenddesc},</if>
            <if test="score != null">#{score},</if>
            <if test="prompt != null">#{prompt},</if>
        </trim>
    </insert>
@@ -220,6 +231,8 @@
            <if test="optionCode != null">option_code = #{optionCode},</if>
            <if test="appendflag != null">appendflag = #{appendflag},</if>
            <if test="appenddesc != null">appenddesc = #{appenddesc},</if>
            <if test="score != null">score = #{score},</if>
            <if test="prompt != null">score = #{prompt},</if>
        </trim>
        where id = #{id}
    </update>