App端诊断记录列表入参调整

master
gongzhenkun 2 years ago
parent ee3ad8b728
commit 4d3942600f

@ -215,10 +215,10 @@ public class AppController extends BaseController
* @return {@code AjaxResult} * @return {@code AjaxResult}
*/ */
@ApiOperation("诊断记录列表") @ApiOperation("诊断记录列表")
@GetMapping("/record/list") @GetMapping("/record/list/{patientId}")
public AjaxResult diagnosisOfRecordList(AppPatientHospitalDoctor appPatientHospitalDoctor) { public AjaxResult diagnosisOfRecordList(@PathVariable("patientId") Long patientId) {
TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor(); TPatientHospitalDoctor tPatientHospitalDoctor = new TPatientHospitalDoctor();
BeanUtils.copyProperties(appPatientHospitalDoctor, tPatientHospitalDoctor); tPatientHospitalDoctor.setPatientId(patientId);
List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor); List<TRecordResp> tRecords = tRecordService.queryRecordListByPHDids(tPatientHospitalDoctor);
return AjaxResult.success(tRecords); return AjaxResult.success(tRecords);
} }

Loading…
Cancel
Save