统计考勤列表bug修复

This commit is contained in:
guoshengxiong 2025-07-03 10:50:17 +08:00
parent cd61d61d19
commit 3cd79fdc81

View File

@ -188,6 +188,8 @@ public class WorkerDailyAttendanceStatisticsV2Controller {
if (StrUtil.isNotBlank(month)) { if (StrUtil.isNotBlank(month)) {
startTime = DateUtil.beginOfMonth(DateUtil.parseDate(month + "-01")); startTime = DateUtil.beginOfMonth(DateUtil.parseDate(month + "-01"));
endTime = DateUtil.endOfMonth(DateUtil.parseDate(month + "-01")); endTime = DateUtil.endOfMonth(DateUtil.parseDate(month + "-01"));
param.put("startTime", DateUtil.formatDate(startTime));
param.put("endTime", DateUtil.formatDate(endTime));
} }
IPage<WorkerInfo> workerInfoList = workerInfoService.selectWorkerInfoList(param); IPage<WorkerInfo> workerInfoList = workerInfoService.selectWorkerInfoList(param);
List<String> personSnList = workerInfoList.getRecords().stream().map(WorkerInfo::getPersonSn).collect(Collectors.toList()); List<String> personSnList = workerInfoList.getRecords().stream().map(WorkerInfo::getPersonSn).collect(Collectors.toList());