From 9526971c403417c1c007804f24884c443b9e6cd7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 04 九月 2024 00:34:40 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/SvyTaskTemplateTargetoptionMapper.xml | 19 ++++++++++++++++---
1 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateTargetoptionMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateTargetoptionMapper.xml
index f0cf721..e8dfe48 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateTargetoptionMapper.xml
+++ b/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>
--
Gitblit v1.9.3