| | |
| | | |
| | | @PostMapping("/create") |
| | | @Operation(summary = "创建当天序号") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:create')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Integer> createQueueSequence(@Valid @RequestBody QueueSequenceSaveReqVO createReqVO) { |
| | | return success(queueSequenceService.createQueueSequence(createReqVO)); |
| | | } |
| | | |
| | | @PutMapping("/update") |
| | | @Operation(summary = "更新当天序号") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:update')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Boolean> updateQueueSequence(@Valid @RequestBody QueueSequenceSaveReqVO updateReqVO) { |
| | | queueSequenceService.updateQueueSequence(updateReqVO); |
| | | return success(true); |
| | |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除当天序号") |
| | | @Parameter(name = "id", description = "编号", required = true) |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:delete')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<Boolean> deleteQueueSequence(@RequestParam("id") Integer id) { |
| | | queueSequenceService.deleteQueueSequence(id); |
| | | return success(true); |
| | |
| | | @GetMapping("/get") |
| | | @Operation(summary = "获得当天序号") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:query')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<QueueSequenceRespVO> getQueueSequence(@RequestParam("id") Integer id) { |
| | | QueueSequenceDO queueSequence = queueSequenceService.getQueueSequence(id); |
| | | return success(BeanUtils.toBean(queueSequence, QueueSequenceRespVO.class)); |
| | |
| | | @GetMapping("/get-timeslot-by-checktype") |
| | | @Operation(summary = "获得当天未满的VIP时间段") |
| | | @Parameter(name = "id", description = "编号", required = true, example = "1024") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:query')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<List<QueueSequenceRespVO>> getTimeslotByCheckType(@RequestParam("checkType") Integer checkType) { |
| | | List<QueueSequenceDO> queueSequenceList = queueSequenceService.selectGivenCheckTypeTimeslot(checkType); |
| | | return success(BeanUtils.toBean(queueSequenceList, QueueSequenceRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/page") |
| | | @Operation(summary = "获得当天序号分页") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:query')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<PageResult<QueueSequenceRespVO>> getQueueSequencePage(@Valid QueueSequencePageReqVO pageReqVO) { |
| | | PageResult<QueueSequenceDO> pageResult = queueSequenceService.getQueueSequencePage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, QueueSequenceRespVO.class)); |
| | |
| | | |
| | | @GetMapping("/export-excel") |
| | | @Operation(summary = "导出当天序号 Excel") |
| | | @PreAuthorize("@ss.hasPermission('ecg:queue-sequence:export')") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | @ApiAccessLog(operateType = EXPORT) |
| | | public void exportQueueSequenceExcel(@Valid QueueSequencePageReqVO pageReqVO, |
| | | HttpServletResponse response) throws IOException { |
| | |
| | | BeanUtils.toBean(list, QueueSequenceRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | } |