feat(report): 添加请假和报餐统计报表功能

- 在IWmsLeaveRequestService接口中新增按请假类型、部门、月份统计的方法
- 在IWmsMealReportService接口中新增按餐别、部门、日期统计的方法
- 在WmsLeaveRequestController中添加请假统计报表相关API端点
- 在WmsMealReportController中添加报餐统计报表相关API端点
- 在WmsLeaveRequestServiceImpl中实现请假统计报表的数据查询逻辑
- 在WmsMealReportServiceImpl中实现报餐统计报表的数据查询逻辑
- 使用QueryWrapper构建统计查询条件,支持多维度筛选和分组统计
- 统一返回Map格式的统计数据,便于前端展示报表图表
This commit is contained in:
2026-01-17 10:36:24 +08:00
parent c408d15f85
commit 672fbefca3
6 changed files with 214 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ import com.klp.common.core.domain.PageQuery;
import java.util.Collection;
import java.util.List;
import java.util.Map;
/**
* 员工请假申请Service接口
@@ -46,4 +47,19 @@ public interface IWmsLeaveRequestService {
* 校验并批量删除员工请假申请信息
*/
Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
/**
* 请假统计报表 - 按请假类型统计
*/
List<Map<String, Object>> getLeaveTypeReport(WmsLeaveRequestBo bo);
/**
* 请假统计报表 - 按部门统计
*/
List<Map<String, Object>> getLeaveDeptReport(WmsLeaveRequestBo bo);
/**
* 请假统计报表 - 按月份统计
*/
List<Map<String, Object>> getLeaveMonthlyReport(WmsLeaveRequestBo bo);
}