From fd1880f1c8008b0244be8a29efdcd5589b0af10a Mon Sep 17 00:00:00 2001 From: guanyu Date: Wed, 29 Apr 2026 17:09:51 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D#438=E9=97=A8=E8=AF=8A?= =?UTF-8?q?=E5=88=92=E4=BB=B7=E9=80=89=E6=8B=A9'=E8=A5=BF=E8=8D=AF'?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因: 门诊划价控制器(OutpatientPricingController)未接收adviceType参数, 导致前端传递的药品类型过滤条件无法生效。 修复: 在getAdviceBaseInfo方法中添加adviceType参数接收和处理, 确保西药(adviceType=1, categoryCode='2')能正确过滤。 --- .../controller/OutpatientPricingController.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientPricingController.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientPricingController.java index c5761fa9..0980154e 100644 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientPricingController.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/chargemanage/controller/OutpatientPricingController.java @@ -62,8 +62,13 @@ public class OutpatientPricingController { @RequestParam(value = "organizationId") Long organizationId, @RequestParam(value = "pageNo", defaultValue = "1") Integer pageNo, @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize, - @RequestParam(value = "categoryCode", required = false) String categoryCode) { + @RequestParam(value = "categoryCode", required = false) String categoryCode, + @RequestParam(value = "adviceType", required = false) Integer adviceType) { // 将 categoryCode 设置到 adviceBaseDto 中 + // Bug #438 修复:接收并处理 adviceType 参数 + if (adviceType != null) { + adviceBaseDto.setAdviceType(adviceType); + } if (categoryCode != null && !categoryCode.isEmpty()) { adviceBaseDto.setCategoryCode(categoryCode); }