| | |
| | | @PostMapping("/updateStatus") |
| | | @Operation(summary = "更新申请状态") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:update')") |
| | | public CommonResult<Boolean> updateAppointmentStatus(@Valid @RequestBody AppointmentSaveReqVO updateReqVO) { |
| | | public CommonResult<Boolean> updateAppointmentStatus(@RequestBody AppointmentSaveReqVO updateReqVO) { |
| | | appointmentService.updateAppointmentStatus(updateReqVO); |
| | | return success(true); |
| | | } |
| | |
| | | @Operation(summary = "获得预约分页") |
| | | @PreAuthorize("@ss.hasPermission('ecg:appointment:query')") |
| | | public CommonResult<PageResult<AppointmentRespVO>> getAppointmentPage(@Valid AppointmentPageReqVO pageReqVO) { |
| | | pageReqVO.setOrderCreateTime("1"); |
| | | PageResult<AppointmentDO> pageResult = appointmentService.getAppointmentPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, AppointmentRespVO.class)); |
| | | } |