患者诊断记录历史列表接口调整

master
gongzhenkun 2 years ago
parent 416a3c7b94
commit 029c3afcc7

@ -338,12 +338,13 @@ public class AppController extends BaseController
* @return {@code AjaxResult} * @return {@code AjaxResult}
*/ */
@ApiOperation("患者诊断记录历史列表") @ApiOperation("患者诊断记录历史列表")
@GetMapping("/record/list/{patientId}") @GetMapping("/record/list/{patientId}/{hospitalId}")
@Log(title = "患者诊断记录历史列表", businessType = BusinessType.OTHER) @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 tPatientHospitalDoctor = new TPatientHospitalDoctor();
tPatientHospitalDoctor.setPatientId(patientId); tPatientHospitalDoctor.setPatientId(patientId);
tPatientHospitalDoctor.setHospitalId(hospitalId);
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList()); List<TRecordResp> tRecordResps = tRecords.stream().filter(record -> "1".equals(record.getStatus())).collect(Collectors.toList());
if (tRecordResps.isEmpty()) { if (tRecordResps.isEmpty()) {

Loading…
Cancel
Save