From d31b7ff5493c111b3c296eb7c4e43cfb8db47444 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Thu, 14 May 2026 04:17:30 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#486:=20[=E4=BD=8F=E9=99=A2?= =?UTF-8?q?=E5=8C=BB=E7=94=9F=E5=B7=A5=E4=BD=9C=E7=AB=99-=E4=B8=B4?= =?UTF-8?q?=E5=BA=8A=E5=8C=BB=E5=98=B1]=20=E5=8C=BB=E5=98=B1=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E6=A1=86=E4=B8=8D=E6=94=AF=E6=8C=81=E5=85=A8=E5=B1=80?= =?UTF-8?q?=E6=A8=A1=E7=B3=8A=E6=90=9C=E7=B4=A2=EF=BC=8C=E6=9C=AA=E9=80=89?= =?UTF-8?q?"=E5=8C=BB=E5=98=B1=E7=B1=BB=E5=9E=8B"=E6=97=B6=E6=A3=80?= =?UTF-8?q?=E7=B4=A2=E7=BB=93=E6=9E=9C=E4=B8=BA=E7=A9=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:adviceTypes 参数使用逗号分隔字符串 '1,2,3,6',经 tansParams 序列化后变成 adviceTypes=1%2C2%2C3%2C6(URL编码的逗号),Spring MVC 无法将其正确解析为 List, 导致后端 SQL 返回空结果。改为数组 [1,2,3,6] 后,tansParams 正确序列化为 adviceTypes=1&adviceTypes=2&adviceTypes=3&adviceTypes=6,后端可正常解析。 Co-Authored-By: Claude Opus 4.7 --- .../inpatientDoctor/home/components/adviceBaseList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue index 3802ebdab..8bc5c4de9 100755 --- a/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue +++ b/openhis-ui-vue3/src/views/inpatientDoctor/home/components/adviceBaseList.vue @@ -51,7 +51,7 @@ const currentSelectRow = ref({}); const queryParams = ref({ pageSize: 100, pageNo: 1, - adviceTypes: '1,2,3,6', + adviceTypes: [1, 2, 3, 6], searchKey: '', organizationId: '', categoryCode: '', @@ -88,10 +88,10 @@ const tableColumns = computed(() => [ function refresh(adviceType: any, categoryCode: string, searchKey: string) { // 有搜索词时跨类型搜索,避免用户输入"级护理"但因当前adviceType为药品而搜不到诊疗类护理项目 if (searchKey) { - queryParams.value.adviceTypes = '1,2,3,6'; + queryParams.value.adviceTypes = [1, 2, 3, 6]; } else { queryParams.value.adviceTypes = - adviceType !== undefined && adviceType !== '' ? String(adviceType) : '1,2,3,6'; + adviceType !== undefined && adviceType !== '' ? [parseInt(adviceType)] : [1, 2, 3, 6]; } queryParams.value.categoryCode = categoryCode || ''; queryParams.value.searchKey = searchKey || '';