| | |
| | | .map(XpFleetOperations::getOperationsUserId).distinct().collect(Collectors.toList()); |
| | | // 批量查询人员打卡信息 |
| | | List<XpClockIn> clockInList = xpClockInService.list(Wrappers.lambdaQuery(XpClockIn.class) |
| | | .in(XpClockIn::getAppUserId, operationsUserIds)); |
| | | .in(XpClockIn::getAppUserId, operationsUserIds).in(XpClockIn::getShiftId, ids)); |
| | | // 判断有哪些人员没有打卡信息 |
| | | List<Long> noClockInUserIds = operationsUserIds.stream().filter(id -> clockInList.stream().noneMatch(clockIn -> clockIn.getAppUserId().equals(id))).collect(Collectors.toList()); |
| | | if(!CollectionUtils.isEmpty(noClockInUserIds)){ |
| | |
| | | .map(XpFleetOperations::getOperationsUserId).distinct().collect(Collectors.toList()); |
| | | // 批量查询人员打卡信息 |
| | | List<XpClockIn> clockInListFive = xpClockInService.list(Wrappers.lambdaQuery(XpClockIn.class) |
| | | .in(XpClockIn::getAppUserId, operationsUserIdsFive) |
| | | .in(XpClockIn::getAppUserId, operationsUserIdsFive).in(XpClockIn::getShiftId, fiveIds) |
| | | .isNull(XpClockIn::getClockOutTime)); |
| | | log.info("========== 获取到{}个人员没有下班打卡信息 ==========", clockInListFive.size()); |
| | | if(!CollectionUtils.isEmpty(clockInListFive)){ |
| | |
| | | // 批量查询人员打卡信息 |
| | | List<XpClockIn> clockInListFive = xpClockInService.list(Wrappers.lambdaQuery(XpClockIn.class) |
| | | .in(XpClockIn::getAppUserId, operationsUserIdsFive) |
| | | .in(XpClockIn::getShiftId, fiveIds) |
| | | .likeRight(XpClockIn::getClockInTime,LocalDate.now().minusDays(1)) |
| | | .isNull(XpClockIn::getClockOutTime)); |
| | | log.info("========== 获取到{}个人员没有下班打卡信息 ==========", clockInListFive.size()); |