| | |
| | | } |
| | | |
| | | // 更新记录状态为超期自动签离 |
| | | Date signOutTime = new Date(); |
| | | LambdaUpdateWrapper<SysVisitorRecord> updateWrapper = new LambdaUpdateWrapper<>(); |
| | | updateWrapper.eq(SysVisitorRecord::getRecordId, record.getRecordId()) |
| | | .set(SysVisitorRecord::getStatus, "OVERDUE_AUTO_SIGNED_OUT") |
| | | .set(SysVisitorRecord::getSignTime, new Date()) // 签离时间设为有效期结束时间 |
| | | .set(SysVisitorRecord::getSignTime, signOutTime) // 签离时间设为当前时间 |
| | | .set(SysVisitorRecord::getSignReceiverName, "系统自动") |
| | | .set(SysVisitorRecord::getSignVerifyMethod, "AUTO") |
| | | .set(SysVisitorRecord::getSignImageUrl, null) |
| | |
| | | int updateCount = visitorRecordMapper.update(null, updateWrapper); |
| | | |
| | | if (updateCount > 0) { |
| | | record.setStatus("OVERDUE_AUTO_SIGNED_OUT"); |
| | | record.setSignTime(signOutTime); |
| | | visitorRecordService.syncMiddlePlatformStatus(record); |
| | | successCount++; |
| | | log.info("超期自动签离成功,recordId: {}, 姓名: {}, 身份证号: {}, 有效期结束时间: {}", |
| | | record.getRecordId(), |