华佗 6cd658d8da fix(#630): 请修复 Bug #630:[门诊医生站] 点击选择现诊患者列表报错
根因:
- **
- 门诊医生站点击现诊患者后,右侧病历区域加载失败,抛出异常。经过全链路分析(前端→Controller→Service→Mapper→DB),定位到两个可能的问题点:
- 1. `DoctorStationEmrController.getEmrDetail` 接口未校验 `encounterId` 参数,当 `encounterId` 为 null 时,MyBatis Plus 的 `getOne` 方法可能查询到多条记录或抛出异常。
- 2. `DoctorStationEmrController.getPatientEmrHistory` 接口未校验 `patientId` 参数,可能导致查询条件异常。

修复:
- **
- 在 `DoctorStationEmrAppServiceImpl.getPatientEmrHistory` 方法中增加 `patientId` 空值校验,为空时返回空分页结果,避免查询异常。
- 在 `DoctorStationEmrAppServiceImpl.getEmrDetail` 方法中增加 `encounterId` 空值校验,为空时直接返回 null;同时将 `emrService.getOne` 的第二个参数设为 `false`,避免多条记录时抛出异常。
- 修改文件:**
- `openhis-application/src/main/java/com/openhis/web/doctorstation/appservice/impl/DoctorStationEmrAppServiceImpl.java`
- 编译验证:**
- 运行 `mvn compile -pl openhis-application -am`,编译成功,无新增错误。
2026-05-31 00:42:00 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 23:18:49 +08:00
2026-04-08 23:12:24 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
Description
No description provided
169 MiB
Languages
Java 47.5%
Vue 45.9%
JavaScript 5.6%
HTML 0.6%
SCSS 0.1%