From e65df66077ed4548340210dbe98a9c82e1e0c045 Mon Sep 17 00:00:00 2001
From: 陈昶聿 <chychen@nbjetron.com>
Date: 星期一, 22 十二月 2025 14:59:14 +0800
Subject: [PATCH] 【丽水】查询患者随访信息再调整,使用数据库层聚合计算,替代应用层遍历
---
smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml b/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml
index 2f08750..6619965 100644
--- a/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/PatSatisfactionMapper.xml
@@ -108,6 +108,12 @@
<if test="orgid != null and orgid != ''">
and orgid = #{orgid}
</if>
+ <if test="startTime != null">
+ AND date_format(update_time,'%y%m%d') >= date_format(#{startTime},'%y%m%d')
+ </if>
+ <if test="endTime != null">
+ AND date_format(update_time,'%y%m%d') <= date_format(#{endTime},'%y%m%d')
+ </if>
</where>
</select>
--
Gitblit v1.9.3