From 9c4d55a3521e40e9fac909b0d6b9bae0b89bd6a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= Date: Thu, 9 Apr 2026 10:11:30 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=90=8E=E7=AB=AF=E6=8C=89=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=97=B6=E9=97=B4=E8=BF=87=E6=BB=A4=E5=8F=B7=E6=BA=90?= =?UTF-8?q?=EF=BC=8C=E9=81=BF=E5=85=8D=E5=89=8D=E7=AB=AF=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BF=87=E6=BB=A4=E5=AF=BC=E8=87=B4=E6=95=B0=E6=8D=AE=E4=B8=8D?= =?UTF-8?q?=E4=B8=80=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/administration/ScheduleSlotMapper.xml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml b/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml index a9b91d08..f2418441 100644 --- a/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml +++ b/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml @@ -261,7 +261,8 @@ LEFT JOIN adm_patient pinfo ON o.patient_id = pinfo.id p.delete_flag = '0' - AND s.delete_flag = '0' + AND s.delete_flag = '0' + AND p.schedule_date = CAST(#{query.date} AS DATE) @@ -296,7 +297,9 @@ AND o.phone LIKE CONCAT('%', #{query.phone}, '%') - + + AND (p.schedule_date > CURRENT_DATE OR (p.schedule_date = CURRENT_DATE AND s.expect_time >= CAST(CURRENT_TIME AS TIME))) +