| | |
| | | package cn.lihu.jh.module.ecg.controller.admin.jobrecord; |
| | | |
| | | import cn.lihu.jh.framework.security.core.util.SecurityFrameworkUtils; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.jobrecord.JobRecordStatisticDO; |
| | | import org.springframework.web.bind.annotation.*; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | |
| | | BeanUtils.toBean(list, JobRecordRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | @GetMapping("/job-statistic") |
| | | @Operation(summary = "工作量统计") |
| | | @PreAuthorize("@ss.hasPermission('ecg:job-record:statistic')") |
| | | public CommonResult<List<JobRecordStatisticVO>> getJobStatistic(@Valid JobRecordPageReqVO pageReqVO) { |
| | | List<JobRecordStatisticDO> statisticDOList = jobRecordService.getJobStatistic(pageReqVO.getJobTime()[0], pageReqVO.getJobTime()[1]); |
| | | return success(BeanUtils.toBean(statisticDOList, JobRecordStatisticVO.class)); |
| | | } |
| | | } |
| | | |