From 141eef1ac1e9111fb33f96a95b59ba69422f8688 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 14 九月 2026 17:02:17 +0800
Subject: [PATCH] 1.优化问卷详情的查询速度

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

diff --git a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
index cdfa059..6cfd428 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyTaskTemplateScriptMapper.xml
@@ -15,7 +15,7 @@
         <result property="language" column="language"/>
         <result property="categoryName" column="categoryName"/>
         <result property="scriptContent" column="script_content"/>
-        <result property="isMust" column="is_must"/>
+        <result property="ismandatory" column="ismandatory"/>
         <result property="delFlag" column="del_flag"/>
         <result property="updateBy" column="update_by"/>
         <result property="updateTime" column="update_time"/>
@@ -82,7 +82,7 @@
                scriptno,
                templateID,
                scriptid,
-               script_topic, language, categoryName, script_content, is_must, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetoptions, script_type, targetid, targetvalue, next_scriptno, script_result, otherdata, picture_path
+               script_topic, language, categoryName, script_content, ismandatory, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetoptions, script_type, targetid, targetvalue, next_scriptno, script_result, otherdata, picture_path
                 , duty_dept_person_name, duty_dept_person_code, report_dept_person_name, report_dept_person_code
                  , circulation_dept_person_code, circulation_dept_person_name
         from svy_task_template_script
@@ -118,7 +118,7 @@
                 '%')
             </if>
             <if test="scriptContent != null  and scriptContent != ''">and script_content = #{scriptContent}</if>
-            <if test="isMust != null  and isMust != ''">and is_must = #{isMust}</if>
+            <if test="ismandatory != null  and ismandatory != ''">and ismandatory = #{ismandatory}</if>
             <if test="isupload != null ">and isupload = #{isupload}</if>
             <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
             <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
@@ -180,7 +180,7 @@
             <if test="language != null">language,</if>
             <if test="categoryName != null">categoryName,</if>
             <if test="scriptContent != null">script_content,</if>
-            <if test="isMust != null">is_must,</if>
+            <if test="ismandatory != null">ismandatory,</if>
             <if test="delFlag != null">del_flag,</if>
             <if test="updateBy != null">update_by,</if>
             <if test="updateTime != null">update_time,</if>
@@ -233,7 +233,7 @@
             <if test="language != null">#{language},</if>
             <if test="categoryName != null">#{categoryName},</if>
             <if test="scriptContent != null">#{scriptContent},</if>
-            <if test="isMust != null">#{isMust},</if>
+            <if test="ismandatory != null">#{ismandatory},</if>
             <if test="delFlag != null">#{delFlag},</if>
             <if test="updateBy != null">#{updateBy},</if>
             <if test="updateTime != null">#{updateTime},</if>
@@ -290,7 +290,7 @@
             <if test="language != null">language = #{language},</if>
             <if test="categoryName != null">categoryName = #{categoryName},</if>
             <if test="scriptContent != null">script_content = #{scriptContent},</if>
-            <if test="isMust != null">is_must = #{isMust},</if>
+            <if test="ismandatory != null">ismandatory = #{ismandatory},</if>
             <if test="delFlag != null">del_flag = #{delFlag},</if>
             <if test="updateBy != null">update_by = #{updateBy},</if>
             <if test="updateTime != null">update_time = #{updateTime},</if>

--
Gitblit v1.9.3