| | |
| | | @Operation(summary = "根据患者编号.查询当天预约") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<AppointmentRespVO> getCurAppointmentByPatId(@RequestParam("patId") String patId) { |
| | | AppointmentDO appointment = appointmentService.getCurAppointmentByPatId( patId ); |
| | | public CommonResult<AppointmentRespVO> getCurAppointmentByPatId(@RequestParam("patId") String patId, |
| | | @RequestParam("checkType") Integer checkType) { |
| | | AppointmentDO appointment = appointmentService.getCurAppointmentByPatIdAndCheckType( patId, checkType ); |
| | | return success(BeanUtils.toBean(appointment, AppointmentRespVO.class)); |
| | | } |
| | | |
| | |
| | | @Operation(summary = "获得预约分页") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(@Valid AppointmentPageReqVO pageReqVO) { |
| | | pageReqVO.setStatus("1"); |
| | | PageResult<AppointmentDO> pageResult = appointmentService.getAppointmentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AppointmentRespVO.class)); |
| | | } |