diff --git a/openhis-server-new/openhis-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml b/openhis-server-new/openhis-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml index 6201b68d..79009b5a 100644 --- a/openhis-server-new/openhis-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml +++ b/openhis-server-new/openhis-application/src/main/resources/mapper/regdoctorstation/AdviceManageAppMapper.xml @@ -291,7 +291,7 @@ null AS skin_test_flag, null AS inject_flag, null AS group_id, - T2.NAME AS advice_name, + COALESCE(T2.NAME, T1.content_json::jsonb->>'surgeryName') AS advice_name, '' AS volume, '' AS lot_number, T1.quantity AS quantity,