| | |
| | | package cn.iocoder.yudao.module.hrm.controller.admin.attendance; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleBatchAssignReqVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleBatchAssignRespVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleLeaveRespVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleListReqVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleRespVO; |
| | | import cn.iocoder.yudao.module.hrm.controller.admin.attendance.vo.HrmEmployeeScheduleSaveReqVO; |
| | |
| | | |
| | | @GetMapping("/list") |
| | | @Operation(summary = "获得某月员工排班列表") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-schedule:query')") |
| | | public CommonResult<List<HrmEmployeeScheduleRespVO>> getEmployeeScheduleList( |
| | | @Valid HrmEmployeeScheduleListReqVO reqVO) { |
| | | return success(employeeScheduleService.getScheduleList(reqVO)); |
| | | } |
| | | |
| | | @GetMapping("/leave-list") |
| | | @Operation(summary = "获得排班页请假标记列表(已审批通过,按天展开)") |
| | | public CommonResult<List<HrmEmployeeScheduleLeaveRespVO>> getScheduleLeaveList( |
| | | @Valid HrmEmployeeScheduleListReqVO reqVO) { |
| | | return success(employeeScheduleService.getScheduleLeaveList(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/batch-assign") |
| | | @Operation(summary = "批量排班(按部门含下级 + 岗位 + 员工状态,跳过已审批请假)") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-schedule:save')") |
| | | public CommonResult<HrmEmployeeScheduleBatchAssignRespVO> batchAssign( |
| | | @Valid @RequestBody HrmEmployeeScheduleBatchAssignReqVO reqVO) { |
| | | return success(employeeScheduleService.batchAssign(reqVO)); |
| | | } |
| | | |
| | | @PostMapping("/save") |
| | | @Operation(summary = "批量保存员工排班(整月覆盖式)") |
| | | @PreAuthorize("@ss.hasPermission('hrm:employee-schedule:save')") |