From a77bf9fb4718d1b657f8ef8c6edfaffa1a53683f Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期五, 06 二月 2026 17:01:20 +0800
Subject: [PATCH] 处理数据查询慢的问题
---
smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
index f9abd3e..610243b 100644
--- a/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatMedInhospMapper.xml
@@ -1013,6 +1013,7 @@
where 1=1
and del_flag = 0
and service_type=2
+ and visit_count is not null
and visit_count = 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
@@ -1042,7 +1043,7 @@
where 1=1
and del_flag = 0
and service_type=2
-
+ and visit_count is not null
and visit_count > 1
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
--
Gitblit v1.9.3