From 300d877312a800c93aef61f1d9b3b0890343dfad Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期四, 28 五月 2026 18:03:08 +0800
Subject: [PATCH] 【丽水】原人工、微信、短信、AI  计算方式修改为   随访成功中的人工、微信、短信、AI人次 参数 followUpCountStyle =3 控制

---
 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