补卡列表排除掉请假的数据

This commit is contained in:
2025-04-01 17:06:00 +08:00
parent 8effac832a
commit 38f7abfa62

View File

@ -364,7 +364,8 @@ public class WgzAttendanceServiceImpl extends ServicePlusImpl<WgzAttendanceMappe
//4、查询所有缺卡、迟到、早退的打卡记录
LambdaQueryWrapper<WgzAttendance> apply = new LambdaQueryWrapper<WgzAttendance>().
eq(WgzAttendance::getUserId, appUserId).
eq(WgzAttendance::getRecruitId, appById.getId())
eq(WgzAttendance::getRecruitId, appById.getId()).
isNull(WgzAttendance::getLeaveMarkId)
.and(wrapper -> wrapper
.eq(WgzAttendance::getLate, 1)
.or()