From 7b5c61970aab0f653c01effb630eb18ec75b940b Mon Sep 17 00:00:00 2001 From: chenqi Date: Fri, 29 May 2026 13:14:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(doctorstation):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E6=9F=A5=E8=AF=A2=E4=B8=AD=E7=9A=84?= =?UTF-8?q?SQL=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除了med_medication_request查询中多余的逗号 - 移除了wor_device_request查询中多余的逗号 - 修复了wor_service_request查询中字段位置错误的问题 - 确保所有AS别名语法的一致性 - 修复了可能导致数据库查询失败的语法问题 --- .../mapper/doctorstation/DoctorStationAdviceAppMapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ead82c745..2a7b17e29 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 @@ -515,7 +515,7 @@ T1.encounter_id AS encounter_id, T1.patient_id AS patient_id, 'med_medication_definition' AS advice_table_name, - T1.medication_id AS advice_definition_id, + T1.medication_id AS advice_definition_id , T1.content_json::jsonb ->> 'remark' AS remark FROM med_medication_request AS T1 LEFT JOIN med_medication_definition AS T2 ON T2.ID = T1.medication_id @@ -696,7 +696,7 @@ T1.encounter_id AS encounter_id, T1.patient_id AS patient_id, 'adm_device_definition' AS advice_table_name, - T1.device_def_id AS advice_definition_id, + T1.device_def_id AS advice_definition_id , T1.content_json::jsonb ->> 'remark' AS remark FROM wor_device_request AS T1 LEFT JOIN adm_device_definition AS T2 ON T2.ID = T1.device_def_id @@ -753,8 +753,8 @@ T1.encounter_id AS encounter_id, T1.patient_id AS patient_id, 'wor_activity_definition' AS advice_table_name, - , T1.remark AS remark T1.activity_id AS advice_definition_id, + T1.remark AS remark FROM wor_service_request AS T1 LEFT JOIN wor_activity_definition AS T2 ON T2.ID = T1.activity_id