diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java index cf63389..9e8e296 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/api/AppController.java @@ -338,12 +338,13 @@ public class AppController extends BaseController * @return {@code AjaxResult} */ @ApiOperation("患者诊断记录历史列表") - @GetMapping("/record/list/{patientId}") + @GetMapping("/record/list/{patientId}/{hospitalId}") @Log(title = "患者诊断记录历史列表", businessType = BusinessType.OTHER) - public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId) + public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId, @PathVariable("hospitalId") Long hospitalId) { TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); tPatientHospitalDoctor.setPatientId(patientId); + tPatientHospitalDoctor.setHospitalId(hospitalId); List tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); List tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList()); if (tRecordResps.isEmpty()) {