From 57cdeef910e6c80b37eb0fc53d6a31066105b9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=A4=87?= <刘备@gentronhealth.com> Date: Sat, 9 May 2026 17:53:31 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#456:=20=E9=97=A8=E8=AF=8A=E5=8C=BB?= =?UTF-8?q?=E7=94=9F=E7=AB=99=EF=BC=9A=E8=AF=8A=E7=96=97=E7=B1=BB=E5=8C=BB?= =?UTF-8?q?=E5=98=B1=E4=BF=9D=E5=AD=98=E5=90=8E=E7=B1=BB=E5=9E=8B=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E4=B8=BA"=E6=A3=80=E6=9F=A5"=E4=B8=94=E7=AD=BE?= =?UTF-8?q?=E5=8F=91=E6=88=90=E5=8A=9F=E5=90=8E=E7=8A=B6=E6=80=81=E6=9C=AA?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:getRequestBaseInfo SQL 查询中 wor_service_request 的 advice_type 计算 使用了 COALESCE(T1.category_enum, 3),导致 category_enum=23(检查) 时 返回 advice_type=23 而非 3(诊疗),前端将 23 特殊映射为"检查"显示 修复:将 ELSE COALESCE(T1.category_enum, 3) 改为 ELSE 3,确保所有 诊疗子类型(检查/检验/治疗等)统一返回 advice_type=3 Co-Authored-By: Claude Opus 4.7 --- .../mapper/doctorstation/DoctorStationAdviceAppMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml index 1ade4844..e80c7f77 100755 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/doctorstation/DoctorStationAdviceAppMapper.xml @@ -647,7 +647,7 @@ AND T1.refund_device_id IS NULL ORDER BY T1.status_enum) UNION ALL - (SELECT CASE WHEN T1.category_enum = 4 THEN 6 ELSE COALESCE(T1.category_enum, 3) END AS advice_type, + (SELECT CASE WHEN T1.category_enum = 4 THEN 6 ELSE 3 END AS advice_type, T1.id AS request_id, T1.id || '-3' AS unique_key, '' AS prescription_no,