From 1ecb6109954d22e9be03518d64cdcfd89b599091 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 02 六月 2026 18:20:11 +0800
Subject: [PATCH] 1.处理修改service_task时,子任务删除,未将出院数据还原的问题; 2.新增省立同德满意度接口 3.处理患者基本信息并发新增的问题

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

diff --git a/smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml b/smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml
index 4749185..e892bf1 100644
--- a/smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/SvyLibScriptMapper.xml
@@ -38,11 +38,13 @@
         <result property="targetname" column="targetname"/>
         <result property="targettype" column="targettype"/>
         <result property="targetoptions" column="targetoptions"/>
+        <result property="dimension" column="dimension"/>
     </resultMap>
 
     <sql id="selectSvyLibScriptVo">
         select id,
                scoretype,
+               dimension,
                targetid,
                targetname,
                targettype,
@@ -79,10 +81,11 @@
 
     <select id="selectSvyLibScriptList" parameterType="com.smartor.domain.SvyLibScript" resultMap="SvyLibScriptResult">
         <include refid="selectSvyLibScriptVo"/>
-        <where>
-            del_flag=0
+        where 1=1
+            and del_flag = 0
             <if test="id != null ">and id = #{id}</if>
             <if test="scriptType != null and scriptType != ''">and script_type = #{scriptType}</if>
+            <if test="dimension != null and dimension != ''">and dimension = #{dimension}</if>
             <if test="categoryid != null ">and categoryid = #{categoryid}</if>
             <if test="scriptContent != null  and scriptContent != ''">and script_content like concat('%',
                 #{scriptContent}, '%')
@@ -101,7 +104,7 @@
             <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>
-        </where>
+            <if test="categoryids != null and categoryids != ''">and categoryid in (#{categoryids})</if>
         order by id desc
     </select>
 
@@ -146,6 +149,7 @@
             <if test="targettype != null  and targettype != ''">targettype,</if>
             <if test="targetoptions != null  and targetoptions != ''">targetoptions,</if>
             <if test="guid != null  and guid != ''">guid,</if>
+            <if test="dimension != null  and dimension != ''">dimension,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="scriptType != null">#{scriptType},</if>
@@ -180,6 +184,7 @@
             <if test="targettype != null  and targettype != ''">#{targettype},</if>
             <if test="targetoptions != null  and targetoptions != ''">#{targetoptions},</if>
             <if test="guid != null  and guid != ''">#{guid},</if>
+            <if test="dimension != null  and dimension != ''">#{dimension},</if>
         </trim>
     </insert>
 
@@ -217,6 +222,7 @@
             <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="dimension != null  and dimension != ''">dimension = #{dimension},</if>
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3