feat(leave): 添加请假统计功能和优化查询条件

- 新增根据请假人分组获取请假信息的接口方法
- 在WmsLeaveRequestBo中添加beginTime、endTimeParam和leaveIds字段
- 重构buildQueryWrapper方法支持按ID列表查询和时间范围交叉查询
- 添加按请假人分组统计的数据库查询实现
- 移除WmsLeaveRequestVo中leaveId和attachmentUrls的Excel导出注解
- 在WmsMealReportService中添加用户昵称映射功能
- 为WmsMealReportVo添加创建人和更新人姓名字段
This commit is contained in:
2026-01-19 10:16:00 +08:00
parent 0b202f9ee2
commit d17272fbe4
7 changed files with 148 additions and 21 deletions

View File

@@ -122,4 +122,15 @@ public class WmsLeaveRequestController extends BaseController {
public R<List<Map<String, Object>>> getLeaveMonthlyReport(WmsLeaveRequestBo bo) {
return R.ok(iWmsLeaveRequestService.getLeaveMonthlyReport(bo));
}
/**
* 根据请假人分组获取请假信息
*/
@GetMapping("/grouped")
public R<List<Map<String, Object>>> getLeaveListGroupedByApplicant(WmsLeaveRequestBo bo) {
return R.ok(iWmsLeaveRequestService.getLeaveListGroupedByApplicant(bo));
}
}