From 562a960261b75d70abd65aa10528f09aeece94e8 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 24 九月 2024 09:49:23 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml |   28 +++++++++++++++++++++++++++-
 1 files changed, 27 insertions(+), 1 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
index 9771de5..4264cc7 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibTemplateMapper.xml
@@ -34,11 +34,19 @@
         <result property="reply" column="reply"/>
         <result property="scriptScore" column="script_score"/>
         <result property="scoreType" column="score_type"/>
+        <result property="prologue" column="prologue"/>
+        <result property="instruction" column="instruction"/>
+        <result property="conclusion" column="conclusion"/>
+        <result property="longTemp" column="long_temp"/>
     </resultMap>
 
     <sql id="selectSvyLibTemplateVo">
         select svyid,
                categoryid,
+               long_temp,
+               instruction,
+               prologue,
+               conclusion,
                value_type,
                reply,
                score_type,
@@ -73,6 +81,10 @@
             resultMap="SvyLibTemplateResult">
         SELECT
         a.svyid,
+        a.long_temp,
+        a.conclusion,
+        a.instruction,
+        a.prologue,
         a.categoryid,
         a.svycode,
         a.svyname,
@@ -112,10 +124,12 @@
             a.del_flag=0
             <if test="categoryid != null ">and a.categoryid = #{categoryid}</if>
             <if test="svyid != null ">and a.svyid = #{svyid}</if>
+            <if test="longTemp != null ">and a.long_temp = #{longTemp}</if>
             <if test="svyname != null  and svyname != ''">and a.svyname like concat('%', #{svyname}, '%')</if>
-            <if test="description != null  and description != ''">and a.icdname like concat('%', #{description}, '%')
+            <if test="description != null  and description != ''">and b.icd10name like concat('%', #{description}, '%')
             </if>
         </where>
+        order by a.create_time desc
     </select>
 
     <select id="selectSvyLibTemplateBySvyid" parameterType="Long" resultMap="SvyLibTemplateResult">
@@ -155,6 +169,10 @@
             <if test="reply != null">reply,</if>
             <if test="scriptScore != null">script_score,</if>
             <if test="scoreType != null">score_type,</if>
+            <if test="conclusion != null">conclusion,</if>
+            <if test="instruction != null">instruction,</if>
+            <if test="prologue != null">prologue,</if>
+            <if test="longTemp != null ">long_temp,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="categoryid != null">#{categoryid},</if>
@@ -185,6 +203,10 @@
             <if test="reply != null">#{reply},</if>
             <if test="scriptScore != null">#{scriptScore},</if>
             <if test="scoreType != null">#{scoreType},</if>
+            <if test="conclusion != null">#{conclusion},</if>
+            <if test="instruction != null">#{instruction},</if>
+            <if test="prologue != null">#{prologue},</if>
+            <if test="longTemp != null ">#{longTemp},</if>
         </trim>
     </insert>
 
@@ -219,6 +241,10 @@
             <if test="reply != null">reply = #{reply},</if>
             <if test="scriptScore != null">script_score = #{scriptScore},</if>
             <if test="scoreType != null">score_type = #{scoreType},</if>
+            <if test="conclusion != null">conclusion=#{conclusion},</if>
+            <if test="instruction != null">instruction=#{instruction},</if>
+            <if test="prologue != null">prologue=#{prologue},</if>
+            <if test="longTemp != null ">long_temp = #{longTemp},</if>
         </trim>
         where svyid = #{svyid}
     </update>

--
Gitblit v1.9.3