From 6e397c664037b898b5e9d9955da1d953089e679e Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期二, 09 六月 2026 17:32:07 +0800
Subject: [PATCH] 【市一】手术随访对接

---
 smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
index 0882e3f..b51c18d 100644
--- a/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatArchiveMapper.xml
@@ -28,6 +28,7 @@
         <result property="archivetime" column="archivetime"/>
         <result property="archiveby" column="archiveby"/>
         <result property="telcode" column="telcode"/>
+        <result property="telshortcode" column="telshortcode"/>
         <result property="relativetelcode" column="relativetelcode"/>
         <result property="idcardtype" column="idcardtype"/>
         <result property="orgid" column="orgid"/>
@@ -90,6 +91,7 @@
         <result property="archivetime" column="archivetime"/>
         <result property="archiveby" column="archiveby"/>
         <result property="telcode" column="telcode"/>
+        <result property="telshortcode" column="telshortcode"/>
         <result property="relativetelcode" column="relativetelcode"/>
         <result property="idcardtype" column="idcardtype"/>
         <result property="orgid" column="orgid"/>
@@ -153,6 +155,7 @@
                archivetime,
                archiveby,
                telcode,
+               telshortcode,
                relativetelcode,
                idcardtype,
                orgid,
@@ -280,6 +283,15 @@
         </foreach>
     </select>
 
+    <select id="selectPatArchiveByPatidHiss" resultMap="PatArchiveResult">
+        SELECT id, patid_his
+        FROM pat_archive
+        WHERE patid_his IN
+        <foreach item="patidHis" collection="patidHiss" open="(" separator="," close=")">
+            #{patidHis}
+        </foreach>
+    </select>
+
     <insert id="insertPatArchiveSingle" parameterType="com.smartor.domain.PatArchive" useGeneratedKeys="true"
             keyProperty="id">
         insert into pat_archive
@@ -306,6 +318,7 @@
             <if test="archivetime != null">archivetime,</if>
             <if test="archiveby != null">archiveby,</if>
             <if test="telcode != null">telcode,</if>
+            <if test="telshortcode != null">telshortcode,</if>
             <if test="relativetelcode != null">relativetelcode,</if>
             <if test="idcardtype != null">idcardtype,</if>
             <if test="orgid != null">orgid,</if>
@@ -356,6 +369,7 @@
             <if test="archivetime != null">#{archivetime},</if>
             <if test="archiveby != null">#{archiveby},</if>
             <if test="telcode != null">#{telcode},</if>
+            <if test="telshortcode != null">#{telshortcode},</if>
             <if test="relativetelcode != null">#{relativetelcode},</if>
             <if test="idcardtype != null">#{idcardtype},</if>
             <if test="orgid != null">#{orgid},</if>
@@ -415,6 +429,7 @@
             <if test="archivetime != null">archivetime = #{archivetime},</if>
             <if test="archiveby != null">archiveby = #{archiveby},</if>
             <if test="telcode != null">telcode = #{telcode},</if>
+            <if test="telshortcode != null">telshortcode = #{telshortcode},</if>
             <if test="relativetelcode != null">relativetelcode = #{relativetelcode},</if>
             <if test="idcardtype != null">idcardtype = #{idcardtype},</if>
             <if test="orgid != null">orgid = #{orgid},</if>
@@ -491,6 +506,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,
@@ -564,6 +580,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,
@@ -702,6 +719,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,
@@ -795,6 +813,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,
@@ -887,6 +906,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,
@@ -1122,6 +1142,7 @@
         a.archivetime,
         a.archiveby,
         a.telcode,
+        a.telshortcode,
         a.relativetelcode,
         a.idcardtype,
         a.orgid,

--
Gitblit v1.9.3