From 907641e56c2085aaa81f267946dc3e3e9fca73e7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 18 九月 2024 09:39:02 +0800
Subject: [PATCH] 代码提交

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

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
index 870473a..7d84eb7 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateScriptMapper.xml
@@ -10,6 +10,7 @@
         <result property="nextScriptno" column="next_scriptno"/>
         <result property="scriptno" column="scriptno"/>
         <result property="scriptDesc" column="script_desc"/>
+        <result property="svyid" column="svyid"/>
         <result property="tag" column="tag"/>
         <result property="sort" column="sort"/>
         <result property="ismandatory" column="ismandatory"/>
@@ -37,12 +38,28 @@
         <result property="score" column="score"/>
         <result property="scriptPicture" column="script_picture"/>
         <result property="scriptTopic" column="script_topic"/>
+        <result property="branchFlag" column="branch_flag"/>
+        <result property="branchNextscriptno" column="branch_nextscriptno"/>
+        <result property="targetid" column="targetid"/>
+        <result property="targetname" column="targetname"/>
+        <result property="targettype" column="targettype"/>
+        <result property="targetoptions" column="targetoptions"/>
+        <result property="prompt" column="prompt"/>
     </resultMap>
 
     <sql id="selectSvyLibTemplateScriptVo">
         select id,
                script_type,
+               targetid,
+               targetname,
+               score,
+               prompt,
+               targettype,
+               targetoptions,
                scriptid,
+               branch_flag,
+               branch_nextscriptno,
+               svyid,
                scriptno,
                next_scriptno,
                script_desc,
@@ -66,7 +83,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>
 
@@ -89,6 +106,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>
@@ -98,8 +116,17 @@
             <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>
+            <if test="branchNextscriptno != null  and branchNextscriptno != ''">and branch_nextscriptno =
+                #{branchNextscriptno}
+            </if>
+            <if test="targetid != null ">and targetid = #{targetid}</if>
+            <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>
         </where>
     </select>
 
@@ -143,6 +170,14 @@
             <if test="score != null">score,</if>
             <if test="scriptPicture != null">script_picture,</if>
             <if test="scriptTopic != null">script_topic,</if>
+            <if test="svyid != null">svyid,</if>
+            <if test="branchFlag != null  and branchFlag != ''">branch_flag,</if>
+            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno,</if>
+            <if test="targetid != null ">targetid,</if>
+            <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>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="nextScriptno != null">#{nextScriptno},</if>
@@ -176,6 +211,14 @@
             <if test="score != null">#{score},</if>
             <if test="scriptPicture != null">#{scriptPicture},</if>
             <if test="scriptTopic != null">#{scriptTopic},</if>
+            <if test="svyid != null">#{svyid},</if>
+            <if test="branchFlag != null  and branchFlag != ''">#{branchFlag},</if>
+            <if test="branchNextscriptno != null  and branchNextscriptno != ''">#{branchNextscriptno},</if>
+            <if test="targetid != null ">#{targetid},</if>
+            <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>
         </trim>
     </insert>
 
@@ -213,6 +256,16 @@
             <if test="score != null">score = #{score},</if>
             <if test="scriptPicture != null">script_picture = #{scriptPicture},</if>
             <if test="scriptTopic != null">script_topic = #{scriptTopic},</if>
+            <if test="svyid != null">svyid = #{svyid},</if>
+            <if test="branchFlag != null  and branchFlag != ''">branch_flag = #{branchFlag},</if>
+            <if test="branchNextscriptno != null  and branchNextscriptno != ''">branch_nextscriptno =
+                #{branchNextscriptno},
+            </if>
+            <if test="targetid != null ">targetid = #{targetid},</if>
+            <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>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3