From 4f6ad7952762c01f63a6459c2fcf4eba1cb0ce86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E9=A3=9E?= <张飞@gentronhealth.com> Date: Wed, 13 May 2026 01:03:00 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#362:=20=E4=BD=8F=E9=99=A2=E6=8A=A4?= =?UTF-8?q?=E5=A3=AB=E7=AB=99=EF=BC=9A=E5=85=A5=E5=87=BA=E8=BD=AC=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=8F=8C=E5=87=BB=E6=9F=A5=E7=9C=8B=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=97=B6=EF=BC=8C"=E5=85=A5=E7=A7=91=E6=97=B6=E9=97=B4"?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E6=98=BE=E7=A4=BA=E5=BD=93=E5=89=8D=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=97=B6=E9=97=B4=E8=80=8C=E9=9D=9E=E5=AE=9E=E9=99=85?= =?UTF-8?q?=E5=85=A5=E7=A7=91=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在 selectAdmissionPatientInfo SQL 中,startTime 原取自 bed.start_time(床位级别的位置记录), 当该 LEFT JOIN 无匹配记录时返回 NULL,前端 fallback 到当前系统时间。 改为 COALESCE(bed.start_time, ae.start_time),无床位记录时回退到 encounter 的入院时间。 Co-Authored-By: Claude Opus 4.7 --- .../mapper/inhospitalnursestation/ATDManageAppMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/inhospitalnursestation/ATDManageAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/inhospitalnursestation/ATDManageAppMapper.xml index 63fb2c0c0..ec68fc28e 100755 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/inhospitalnursestation/ATDManageAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/inhospitalnursestation/ATDManageAppMapper.xml @@ -231,7 +231,7 @@ ae.priority_enum, ae.organization_id, ae.start_time AS in_hos_time, - bed.start_time, + COALESCE(bed.start_time, ae.start_time) AS start_time, bed.location_id AS bed_id, bed.location_name AS bed_name, house.location_id AS house_id,