华佗
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 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-31 00:42:00 +08:00
2026-05-28 23:33:24 +08:00
2026-05-29 15:47:05 +08:00
2026-05-27 08:59:07 +08:00
2026-05-27 08:59:07 +08:00
2026-05-08 09:14:18 +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