| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.util.List; |
| | | import com.xiaopeng.common.log.annotation.AdminOperationLog; |
| | | import com.xiaopeng.common.log.enums.AdminBusinessType; |
| | | import com.xiaopeng.common.log.enums.AdminOperationType; |
| | | |
| | | /** |
| | | * <p> |
| | |
| | | |
| | | @ApiOperation(value = "排班考勤-排班计划管理-保存排班数据", response = XpErrorType.class, tags = "管理后台-运维执行") |
| | | @PostMapping("/api/v1/scheduling/saveSchedulingDetail") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.SCHEDULING_MANAGEMENT, |
| | | operationType = AdminOperationType.EDIT, |
| | | contentExpression = "'保存排班数据,month=' + #p0.month", |
| | | appendRequestData = false |
| | | ) |
| | | public R<?> saveSchedulingDetail(@RequestBody SaveSchedulingVo vo){ |
| | | SysUser sysUser = tokenService.getLoginUser().getSysUser(); |
| | | return xpSchedulingDetailService.saveSchedulingDetail(vo, sysUser.getId()); |
| | |
| | | |
| | | @ApiOperation(value = "排班考勤-排班计划管理-导出排班数据", response = XpErrorType.class, tags = "管理后台-运维执行") |
| | | @GetMapping("/api/v1/scheduling/exportExcel") |
| | | @AdminOperationLog( |
| | | businessType = AdminBusinessType.SCHEDULING_MANAGEMENT, |
| | | operationType = AdminOperationType.EXPORT, |
| | | contentExpression = "'导出排班数据,month=' + #p0", |
| | | appendRequestData = false |
| | | ) |
| | | public void exportExcel(@RequestParam("month") String month, HttpServletResponse response) { |
| | | xpSchedulingDetailService.exportExcel(month, response); |
| | | } |