From 25a0ba7b2706db3c5ee546da3e0e7c909777b890 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期三, 29 七月 2026 15:37:32 +0800
Subject: [PATCH] 1,患者过滤状态修改(之前只支持发送之前的过滤,现在支持发送之后的过滤,如果任务发送后,外链不能再打开) 2.在出入院表新增入院申请单字段 3.采集入院数据时,同时要采集importanceFlagCode    emergencyLevelCode 4.外链的发送,也要查询子任务状态,如果是不执行,也不能再发送

---
 smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml |   34 +++++++++++++++++++++++++---------
 1 files changed, 25 insertions(+), 9 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
index 1cf778f..26955c1 100644
--- a/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/IvrLibaScriptAssortMapper.xml
@@ -14,23 +14,36 @@
         <result property="seqno" column="seqno"/>
         <result property="guid" column="guid"/>
         <result property="orgid" column="orgid"/>
+        <result property="type" column="type"/>
     </resultMap>
 
     <sql id="selectIvrLibaScriptAssortVo">
-        select id, index_assort_name, guid, orgid,del_flag, create_time, update_time, pid, seqno
+        select id,
+               index_assort_name,
+               guid,
+               orgid,
+               del_flag,
+               create_time,
+               update_time,
+               pid,
+               seqno,
+               type
         from ivr_liba_script_assort
     </sql>
 
     <select id="selectIvrLibaScriptAssortList" parameterType="com.smartor.domain.IvrLibaScriptAssort"
             resultMap="IvrLibaScriptAssortResult">
         <include refid="selectIvrLibaScriptAssortVo"/>
-        where 1=1
-            <if test="indexAssortName != null  and indexAssortName != ''">and index_assort_name like concat('%',
-                #{indexAssortName}, '%')
-            </if>
-            <if test="pid != null ">and pid = #{pid}</if>
-            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
-            and del_flag=0
+        where del_flag=0
+        <if test="indexAssortName != null  and indexAssortName != ''">and index_assort_name like concat('%',
+            #{indexAssortName}, '%')
+        </if>
+        <if test="type != null  and type != ''">and type like concat('%',
+            #{type}, '%')
+        </if>
+        <if test="pid != null ">and pid = #{pid}</if>
+        <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
+        and del_flag=0
         order by seqno asc
     </select>
 
@@ -57,6 +70,7 @@
             <if test="seqno != null">seqno,</if>
             <if test="guid != null">guid,</if>
             <if test="orgid != null">orgid,</if>
+            <if test="type != null">type,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="indexAssortName != null and indexAssortName != ''">#{indexAssortName},</if>
@@ -67,6 +81,7 @@
             <if test="seqno != null">#{seqno},</if>
             <if test="guid != null">#{guid},</if>
             <if test="orgid != null">#{orgid},</if>
+            <if test="type != null">#{type},</if>
         </trim>
     </insert>
 
@@ -81,6 +96,7 @@
             <if test="seqno != null">seqno = #{seqno},</if>
             <if test="guid != null">guid = #{guid},</if>
             <if test="orgid != null">orgid = #{orgid},</if>
+            <if test="type != null">type = #{type},</if>
         </trim>
         where id = #{id}
     </update>
@@ -88,7 +104,7 @@
     <update id="deleteIvrLibaScriptAssortById" parameterType="Long">
         update ivr_liba_script_assort
         <trim prefix="SET" suffixOverrides=",">
-           del_flag = 1
+            del_flag = 1
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3