From 60ade5154522a042c816abaa1840751011ae0371 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 29 九月 2026 19:15:03 +0800
Subject: [PATCH] 1.省立同德满度问题处理 2.门急诊数据采集优化
---
smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 25 +++++++++++++++++++++----
1 files changed, 21 insertions(+), 4 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
index 39864b7..ef8ecf9 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
@@ -370,14 +370,14 @@
{CALL sp_query_outhosp(
#{outhospno, jdbcType=VARCHAR, mode=IN},
#{serialnum, jdbcType=VARCHAR, mode=IN},
- #{patid, jdbcType=BIGINT, mode=IN},
+ #{patid, jdbcType=INTEGER, mode=IN},
#{patname, jdbcType=VARCHAR, mode=IN},
#{patno, jdbcType=VARCHAR, mode=IN},
#{hospitalname, jdbcType=VARCHAR, mode=IN},
#{hospitalcode, jdbcType=VARCHAR, mode=IN},
#{icd10code, jdbcType=VARCHAR, mode=IN},
#{diagname, jdbcType=VARCHAR, mode=IN},
- #{deptid, jdbcType=BIGINT, mode=IN},
+ #{deptid, jdbcType=INTEGER, mode=IN},
#{deptcode, jdbcType=VARCHAR, mode=IN},
#{deptname, jdbcType=VARCHAR, mode=IN},
#{drcode, jdbcType=VARCHAR, mode=IN},
@@ -385,8 +385,8 @@
#{beginAdmitdate,jdbcType=DATE, mode=IN},
#{endAdmitdate, jdbcType=DATE, mode=IN},
#{orgid, jdbcType=VARCHAR, mode=IN},
- #{isupload, jdbcType=BIGINT, mode=IN},
- #{schemestatus, jdbcType=BIGINT, mode=IN},
+ #{isupload, jdbcType=INTEGER, mode=IN},
+ #{schemestatus, jdbcType=INTEGER, mode=IN},
#{hpi, jdbcType=VARCHAR, mode=IN},
#{mainsuit, jdbcType=VARCHAR, mode=IN},
#{pid, jdbcType=INTEGER, mode=IN},
@@ -447,6 +447,23 @@
WHERE id = #{id}
</select>
+ <!-- 鎸� serialnum 鏌ヨ鎸囧畾鍒嗚〃涓槸鍚﹀凡瀛樺湪璇ヨ褰曪紝鐢ㄤ簬鎻掑叆鍓嶅幓閲� -->
+ <select id="countBySerialnum" resultType="int">
+ SELECT COUNT(*)
+ FROM ${tableName}
+ WHERE serialnum = #{serialnum}
+ </select>
+
+ <!-- 鎵归噺鏌ヨ鎸囧畾鍒嗚〃涓凡瀛樺湪鐨� serialnum锛屼竴娆� SQL 瀹屾垚鏁撮〉鍘婚噸锛岄伩鍏嶉�愭潯 countBySerialnum -->
+ <select id="selectExistingSerialnums" resultType="java.lang.String">
+ SELECT serialnum
+ FROM ${tableName}
+ WHERE serialnum IN
+ <foreach collection="serialnums" item="serialnum" open="(" separator="," close=")">
+ #{serialnum}
+ </foreach>
+ </select>
+
<update id="updateInTable" parameterType="map">
update ${tableName}
<trim prefix="SET" suffixOverrides=",">
--
Gitblit v1.9.3