From 88b1debfe500d3fe27f4c269ba44ab10deacb317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B3=E7=BE=BD?= <关羽@gentronhealth.com> Date: Wed, 13 May 2026 18:05:52 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20Bug=20#471:=20=E6=89=8B=E6=9C=AF=E7=AE=A1?= =?UTF-8?q?=E7=90=86-=E9=97=A8=E8=AF=8A=E6=89=8B=E6=9C=AF=E5=AE=89?= =?UTF-8?q?=E6=8E=92=EF=BC=9A=E6=89=8B=E6=9C=AF=E7=94=B3=E8=AF=B7=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BB=93=E6=9E=9C=E4=B8=AD=E6=B7=B7=E5=85=A5=E4=BD=8F?= =?UTF-8?q?=E9=99=A2=E6=A3=80=E9=AA=8C=E7=94=B3=E8=AF=B7=E5=8D=95=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=EF=BC=88=E8=84=8F=E6=95=B0=E6=8D=AE=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:getSurgeryRequestFormPage 接口构建 RequestFormDto 时 typeCode 传了 null, 导致 SQL 中 type_code 过滤条件被跳过,查出所有申请单(包括 typeCode=22 的住院检验申请单)。 修复:传入 ActivityDefCategory.PROCEDURE.getCode()(值为"24")作为 typeCode, 确保只查询手术类型的申请单。 Co-Authored-By: Claude Opus 4.7 --- .../controller/RequestFormManageController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/regdoctorstation/controller/RequestFormManageController.java b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/regdoctorstation/controller/RequestFormManageController.java index 2d45baa9b..d4f362f4f 100755 --- a/openhis-server-new/openhis-application/src/main/java/com/openhis/web/regdoctorstation/controller/RequestFormManageController.java +++ b/openhis-server-new/openhis-application/src/main/java/com/openhis/web/regdoctorstation/controller/RequestFormManageController.java @@ -163,7 +163,7 @@ public class RequestFormManageController { @RequestParam(required = false) Long applyDeptId, @RequestParam(defaultValue = "1") Integer pageNo, @RequestParam(defaultValue = "10") Integer pageSize) { - RequestFormDto dto = new RequestFormDto(surgeryNo, null, applyTimeStart, applyTimeEnd, + RequestFormDto dto = new RequestFormDto(surgeryNo, ActivityDefCategory.PROCEDURE.getCode(), applyTimeStart, applyTimeEnd, mainDoctorId, applyDeptId, pageNo, pageSize); return R.ok(iRequestFormManageAppService.getRequestFormPage(dto)); }