From 5389773b2d1ae86daec68b00f67c3682dc907e01 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 22 十一月 2024 14:35:48 +0800
Subject: [PATCH] 代码提交(长期任务电话完成)

---
 smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml |   26 ++++++++++++++++++++++----
 1 files changed, 22 insertions(+), 4 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
index ec1c80a..5a5fe37 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
@@ -40,14 +40,20 @@
         <result property="branchNextscriptno" column="branch_nextscriptno"/>
         <result property="targettype" column="targettype"/>
         <result property="targetname" column="targetname"/>
+        <result property="score" column="score"/>
+        <result property="prompt" column="prompt"/>
+        <result property="groupName" column="group_name"/>
 
     </resultMap>
 
     <sql id="selectSvyTaskTemplateScriptVo">
         select id,
                sort,
+               prompt,
+               group_name,
                branch_flag,
                branch_nextscriptno,
+               score,
                script_desc,
                targetname,
                targettype,
@@ -90,8 +96,11 @@
             <if test="picturePath != null  and picturePath != ''">and picture_path = #{picturePath}</if>
             <if test="scriptTopic != null  and scriptTopic != ''">and script_topic = #{scriptTopic}</if>
             <if test="branchFlag != null  and branchFlag != ''">and branch_flag = #{branchFlag}</if>
-            <if test="targetname != null  and targetname != ''">and targetname = #{branchFtargetnamelag}</if>
+            <if test="targetname != null  and targetname != ''">and targetname = #{targetname}</if>
             <if test="targettype != null  and targettype != ''">and targettype = #{targettype}</if>
+            <if test="score != null ">and score = #{score}</if>
+            <if test="prompt != null ">and prompt = #{prompt}</if>
+            <if test="groupName != null ">and group_name = #{groupName}</if>
             <if test="branchNextscriptno != null  and branchNextscriptno != ''">and branch_nextscriptno =
                 #{branchNextscriptno}
             </if>
@@ -104,7 +113,7 @@
     </select>
 
     <insert id="insertSvyTaskTemplateScript" parameterType="com.smartor.domain.SvyTaskTemplateScript"
-            useGeneratedKeys="true" keyProperty="ID">
+            useGeneratedKeys="true" keyProperty="id">
         insert into svy_task_template_script
         <trim prefix="(" suffix=")" suffixOverrides=",">
             <if test="taskid != null">taskid,</if>
@@ -141,6 +150,9 @@
             <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno,</if>
             <if test="targetname != null  and targetname != ''">targetname,</if>
             <if test="targettype != null  and targettype != ''">targettype,</if>
+            <if test="score != null ">score,</if>
+            <if test="prompt != null ">prompt,</if>
+            <if test="groupName != null ">group_name,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="taskid != null">#{taskid},</if>
@@ -175,8 +187,11 @@
             <if test="scriptTopic != null">#{scriptTopic},</if>
             <if test="branchFlag != null  and branchFlag != ''">#{branchFlag},</if>
             <if test="branchNextscriptno != null  and branchNextscriptno != ''">#{branchNextscriptno},</if>
-            <if test="targetname != null  and targetname != ''">#{branchFtargetnamelag},</if>
+            <if test="targetname != null  and targetname != ''">#{targetname},</if>
             <if test="targettype != null  and targettype != ''">#{targettype},</if>
+            <if test="score != null ">#{score},</if>
+            <if test="prompt != null ">#{prompt},</if>
+            <if test="groupName != null ">#{groupName},</if>
         </trim>
     </insert>
 
@@ -217,8 +232,11 @@
             <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
                 #{branchNextscriptno},
             </if>
-            <if test="targetname != null  and targetname != ''">targetname = #{branchFtargetnamelag},</if>
+            <if test="targetname != null  and targetname != ''">targetname = #{targetname},</if>
             <if test="targettype != null  and targettype != ''">targettype = #{targettype},</if>
+            <if test="score != null">score = #{score},</if>
+            <if test="prompt != null">prompt = #{prompt},</if>
+            <if test="groupName != null ">group_name = #{groupName},</if>
         </trim>
         where id = #{d}
     </update>

--
Gitblit v1.9.3