定时任务修改缺卡 数据查询改为包含 今天/昨天
This commit is contained in:
parent
5d3f7ca8bb
commit
736101d974
@ -15,6 +15,7 @@ import org.springframework.stereotype.Component;
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.Arrays;
|
||||
|
||||
@Component
|
||||
@Slf4j
|
||||
@ -33,7 +34,7 @@ public class AttendanceMissingCardJob {
|
||||
String time = now.format(Constants.REPO_DATE_FORMAT);
|
||||
String yesterdayStr = LocalDateTimeUtil.offset(now, -1, ChronoUnit.DAYS).format(Constants.REPO_DATE_FORMAT);
|
||||
LambdaQueryWrapper<AttendancePunchRecordDO> le = new LambdaQueryWrapper<AttendancePunchRecordDO>()
|
||||
.in(AttendancePunchRecordDO::getDayTime, time, yesterdayStr)
|
||||
.in(AttendancePunchRecordDO::getDayTime, Arrays.asList(time, yesterdayStr))
|
||||
.eq(AttendancePunchRecordDO::getNextDayFlag, Constants.TRUE)
|
||||
.eq(AttendancePunchRecordDO::getStatus, AttendanceOnTheDayDTO.PUNCH_STATUS_UN_PUNCH)
|
||||
.le(AttendancePunchRecordDO::getLatestPunchTime, now);
|
||||
|
Loading…
Reference in New Issue
Block a user