From d5fc1e9eb3c3dc92f6a5e1d09d19f19070b4f5f4 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 10 四月 2026 18:03:14 +0800
Subject: [PATCH] 满意度保存BUG处理

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

diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
index 36d7089..b53811c 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml
@@ -447,6 +447,13 @@
         WHERE id = #{id}
     </select>
 
+    <!-- 鎸� serialnum 鏌ヨ鎸囧畾鍒嗚〃涓槸鍚﹀凡瀛樺湪璇ヨ褰曪紝鐢ㄤ簬鎻掑叆鍓嶅幓閲� -->
+    <select id="countBySerialnum" resultType="int">
+        SELECT COUNT(*)
+        FROM ${tableName}
+        WHERE serialnum = #{serialnum}
+    </select>
+
     <update id="updateInTable" parameterType="map">
         update ${tableName}
         <trim prefix="SET" suffixOverrides=",">

--
Gitblit v1.9.3