| | |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<AppointmentRespVO> queryHisByPatient(@RequestParam("patId") String patId) { |
| | | AppointmentDO appointment = appointmentService.getAppointmentExtermal( patId ); |
| | | if ( null == appointment) |
| | | List<AppointmentDO> appointmentList = appointmentService.getAppointmentExtermal( patId ); |
| | | if ( 0 == appointmentList.size() ) |
| | | return error(APPOINTMENT_NOT_BILLING); |
| | | return success(BeanUtils.toBean(appointment, AppointmentRespVO.class)); |
| | | return success(BeanUtils.toBean(appointmentList.get(0), AppointmentRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/page") |