From 3997c02564054cd4d16155284696cee789fbb1cb Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 29 May 2026 13:25:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(doctorstation):=20=E4=BF=AE=E6=AD=A3?= =?UTF-8?q?=E5=8C=BB=E5=98=B1=E5=A4=87=E6=B3=A8=E5=AD=97=E6=AE=B5=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将备注字段来源从 T1.content_json 修改为 T2.content_json - 确保从正确的表获取医嘱备注信息 - 修复因表关联导致的数据查询不准确问题 --- .../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 2a7b17e29..4366dea5e 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 @@ -578,7 +578,7 @@ T1.patient_id AS patient_id, 'med_medication_definition' AS advice_table_name, T3.ID AS advice_definition_id - , T1.content_json::jsonb ->> 'remark' AS remark + , T2.content_json::jsonb ->> 'remark' AS remark FROM adm_charge_item AS T1 INNER JOIN med_medication_request AS T2 ON T2.ID = T1.service_id AND T2.delete_flag = '0' LEFT JOIN med_medication_definition AS T3 ON T3.ID = T2.medication_id AND T3.delete_flag = '0'