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 939c8c80..cb1efea0 100644 --- 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 @@ -98,7 +98,7 @@ LEFT JOIN adm_organization_location AS T6 ON T6.distribution_category_code = t1.category_code AND T6.delete_flag = '0' AND T6.item_code = '1' AND T6.organization_id = #{organizationId} AND (CURRENT_TIME :: time (6) BETWEEN T6.start_time AND T6.end_time) WHERE t1.delete_flag = '0' AND T2.status_enum = #{statusEnum} - + AND 1 = 2 @@ -110,7 +110,9 @@ #{itemId} - AND T5.instance_table = #{medicationTableName} + + AND (T5.instance_table = #{medicationTableName} OR T5.instance_table IS NULL) + ) UNION ALL @@ -119,7 +121,7 @@ (SELECT DISTINCT ON (T1.ID) T1.tenant_id, - 4 AS advice_type, + 2 AS advice_type, T1.bus_no AS bus_no, T1.category_code AS category_code, '' AS pharmacology_category_code, @@ -172,7 +174,9 @@ #{itemId} - AND T4.instance_table = #{deviceTableName} + + AND (T4.instance_table = #{deviceTableName} OR T4.instance_table IS NULL) + AND T1.status_enum = #{statusEnum} ) UNION ALL diff --git a/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/adviceBaseList.vue b/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/adviceBaseList.vue index fe8a9b48..efc91a6d 100644 --- a/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/adviceBaseList.vue +++ b/openhis-ui-vue3/src/views/clinicmanagement/bargain/component/adviceBaseList.vue @@ -112,12 +112,6 @@ function getList() { return; } - // 必须有 adviceType 才查询,避免查询所有类型的数据 - if (!queryParams.value.adviceType) { - console.log('[adviceBaseList] getList() 跳过:adviceType 未设置,当前值:', queryParams.value.adviceType); - return; - } - queryParams.value.organizationId = props.patientInfo.orgId; console.log('[adviceBaseList] getList() 请求参数:', JSON.stringify(queryParams.value));