| | |
| | | package cn.lihu.jh.module.ecg.controller.admin.jobrecord; |
| | | |
| | | import cn.lihu.jh.framework.security.core.util.SecurityFrameworkUtils; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | return success(BeanUtils.toBean(pageResult, JobRecordRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/doctor-page") |
| | | @Operation(summary = "获得用户自己的工作记录分页") |
| | | @PreAuthorize("@ss.hasPermission('ecg:doctor:task')") |
| | | public CommonResult<PageResult<JobRecordRespVO>> getJobRecordDoctorPage(@Valid JobRecordPageReqVO pageReqVO) { |
| | | Long userId = SecurityFrameworkUtils.getLoginUserId(); |
| | | String userNickname = SecurityFrameworkUtils.getLoginUserNickname(); |
| | | |
| | | pageReqVO.setDocId( userId ); |
| | | PageResult<JobRecordDO> pageResult = jobRecordService.getJobRecordPage(pageReqVO); |
| | | return success(BeanUtils.toBean(pageResult, JobRecordRespVO.class)); |
| | | } |
| | | |
| | | @GetMapping("/export-excel") |
| | | @Operation(summary = "导出工作记录 Excel") |
| | | @PreAuthorize("@ss.hasPermission('ecg:job-record:export')") |