| | |
| | | @Operation(summary = "根据患者编号.获得预约.并内部创建预约") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<AppointmentRespVO> queryAndCreateAppointmentByPatId(@RequestParam("patId") String patId) { |
| | | AppointmentDO appointment = appointmentService.queryAndCreateAppointmentByPatId( patId ); |
| | | return success(BeanUtils.toBean(appointment, AppointmentRespVO.class)); |
| | | public CommonResult<List<AppointmentRespVO>> queryAndCreateAppointmentByPatId(@RequestParam("patId") String patId) { |
| | | List<AppointmentDO> appointmentDOList = appointmentService.queryAndCreateAppointmentByPatId( patId ); |
| | | return success(BeanUtils.toBean(appointmentDOList, AppointmentRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/query-his-by-patient") |