补卡申请、审核、统计

This commit is contained in:
liang.chao 2025-08-18 13:57:26 +08:00
parent 60cda843c3
commit 9fed8be07e
2 changed files with 25 additions and 1 deletions

View File

@ -79,7 +79,6 @@ public class RepairCardApplyController extends BaseController {
@PostMapping("export") @PostMapping("export")
@SysLog(title = "补卡申请导出", businessType = OperaType.QUERY, logType = 0, module = "考勤管理-补卡申请", details = "导出补卡申请列表") @SysLog(title = "补卡申请导出", businessType = OperaType.QUERY, logType = 0, module = "考勤管理-补卡申请", details = "导出补卡申请列表")
public void export(HttpServletResponse response, RepairCardApplyDto cardApply) { public void export(HttpServletResponse response, RepairCardApplyDto cardApply) {
List<RepairCardApplyDto> list = repairCardApplyMapper.list(cardApply); List<RepairCardApplyDto> list = repairCardApplyMapper.list(cardApply);
ExcelUtil<RepairCardApplyDto> util = new ExcelUtil<RepairCardApplyDto>(RepairCardApplyDto.class); ExcelUtil<RepairCardApplyDto> util = new ExcelUtil<RepairCardApplyDto>(RepairCardApplyDto.class);
util.exportExcel(response, list, "补卡申请数据"); util.exportExcel(response, list, "补卡申请数据");
@ -173,6 +172,12 @@ public class RepairCardApplyController extends BaseController {
return repairCardApplyMapper.audit(cardApplyDto); return repairCardApplyMapper.audit(cardApplyDto);
} }
/**
* 补卡统计
*
* @param
* @return
*/
@GetMapping("/cardStatistics") @GetMapping("/cardStatistics")
@SysLog(title = "补卡统计列表", businessType = OperaType.QUERY, logType = 0, module = "考勤管理-补卡申请", details = "查询补卡统计列表") @SysLog(title = "补卡统计列表", businessType = OperaType.QUERY, logType = 0, module = "考勤管理-补卡申请", details = "查询补卡统计列表")
public TableDataInfo getCardStatistics(RepairCardApplyDto cardApply) { public TableDataInfo getCardStatistics(RepairCardApplyDto cardApply) {
@ -185,4 +190,17 @@ public class RepairCardApplyController extends BaseController {
} }
return getDataTableError(new ArrayList<>()); return getDataTableError(new ArrayList<>());
} }
/**
* 补卡统计导出
*
* @param
* @return
*/
@GetMapping("/exportCardStatistics")
public void exportCardStatistics(HttpServletResponse response, RepairCardApplyDto cardApply) {
List<CardStatisticsDto> list = repairCardApplyMapper.getCardStatistics(cardApply);
ExcelUtil<CardStatisticsDto> util = new ExcelUtil<CardStatisticsDto>(CardStatisticsDto.class);
util.exportExcel(response, list, "补卡统计数据");
}
} }

View File

@ -1,5 +1,6 @@
package com.bonus.bmw.domain.dto; package com.bonus.bmw.domain.dto;
import com.bonus.common.core.annotation.Excel;
import lombok.Data; import lombok.Data;
/** /**
@ -11,13 +12,18 @@ public class CardStatisticsDto {
// 工程id // 工程id
private String proId; private String proId;
// 工程名称 // 工程名称
@Excel(name = "工程名称")
private String proName; private String proName;
// 申请补卡次数 // 申请补卡次数
@Excel(name = "申请补卡次数")
private Integer num; private Integer num;
//累计补卡人数 //累计补卡人数
@Excel(name = "累计补卡人数")
private Integer personNum; private Integer personNum;
// 累计补卡天数 // 累计补卡天数
@Excel(name = "累计补卡天数")
private Integer days; private Integer days;
// 最新申请时间 // 最新申请时间
@Excel(name = "最新申请时间")
private String createTime; private String createTime;
} }