From 048db32d9a965f1ef398a8aa02a012e9b968a6b1 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 08 十一月 2024 18:39:04 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
index 72dea58..b928d09 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
@@ -44,13 +44,18 @@
         <result property="targetname" column="targetname"/>
         <result property="targettype" column="targettype"/>
         <result property="targetoptions" column="targetoptions"/>
+        <result property="prompt" column="prompt"/>
+        <result property="groupName" column="group_name"/>
     </resultMap>
 
     <sql id="selectSvyLibTemplateScriptVo">
         select id,
                script_type,
                targetid,
+               group_name,
                targetname,
+               score,
+               prompt,
                targettype,
                targetoptions,
                scriptid,
@@ -80,7 +85,7 @@
                suitway,
                script_picture,
                script_topic,
-               isavailable, language, otherdata, value_type, reply, scoretype, score
+               isavailable, language, otherdata, value_type, reply, scoretype
         from svy_lib_template_script
     </sql>
 
@@ -103,6 +108,7 @@
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="pid != null ">and pid = #{pid}</if>
             <if test="guid != null  and guid != ''">and guid = #{guid}</if>
+            <if test="prompt != null  and prompt != ''">and prompt = #{prompt}</if>
             <if test="categoryid != null ">and categoryid = #{categoryid}</if>
             <if test="scriptContent != null  and scriptContent != ''">and script_content = #{scriptContent}</if>
             <if test="suitway != null  and suitway != ''">and suitway = #{suitway}</if>
@@ -112,7 +118,6 @@
             <if test="valueType != null  and valueType != ''">and value_type = #{valueType}</if>
             <if test="reply != null  and reply != ''">and reply = #{reply}</if>
             <if test="scoretype != null  and scoretype != ''">and scoretype = #{scoretype}</if>
-            <if test="score != null  and score != ''">and score = #{score}</if>
             <if test="scriptTopic != null  and scriptTopic != ''">and script_topic = #{scriptTopic}</if>
             <if test="svyid != null  ">and svyid = #{svyid}</if>
             <if test="branchFlag != null  and branchFlag != ''">and branch_flag = #{branchFlag}</if>
@@ -123,6 +128,8 @@
             <if test="targetname != null  and targetname != ''">and targetname = #{targetname}</if>
             <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if>
             <if test="targetoptions != null  and targetoptions != ''">and targetoptions = #{targetoptions}</if>
+            <if test="score != null">and score = #{score}</if>
+            <if test="groupName != null">and group_name = #{groupName}</if>
         </where>
     </select>
 
@@ -173,6 +180,8 @@
             <if test="targetname != null  and targetname != ''">targetname,</if>
             <if test="targettype != null  and targettype != ''">targettype,</if>
             <if test="targetoptions != null  and targetoptions != ''">targetoptions,</if>
+            <if test="prompt != null  and prompt != ''">prompt,</if>
+            <if test="groupName != null  and groupName != ''">group_name,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="nextScriptno != null">#{nextScriptno},</if>
@@ -213,6 +222,8 @@
             <if test="targetname != null  and targetname != ''">#{targetname},</if>
             <if test="targettype != null  and targettype != ''">#{targettype},</if>
             <if test="targetoptions != null  and targetoptions != ''">#{targetoptions},</if>
+            <if test="prompt != null  and prompt != ''">#{prompt},</if>
+            <if test="groupName != null  and groupName != ''">#{groupName},</if>
         </trim>
     </insert>
 
@@ -259,6 +270,8 @@
             <if test="targetname != null  and targetname != ''">targetname = #{targetname},</if>
             <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if>
             <if test="targetoptions != null  and targetoptions != ''">targetoptions = #{targetoptions},</if>
+            <if test="prompt != null  and prompt != ''">prompt = #{prompt},</if>
+            <if test="groupName != null  and groupName != ''">group_name = #{groupName},</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3