取消华为盒子比对失败上报,没有授权记录上报

This commit is contained in:
lxj
2025-09-03 14:24:26 +08:00
parent bb4ac2bcb8
commit 287672d28b

View File

@@ -82,7 +82,7 @@ public class EventAlarmReportServiceImpl implements IEventAlarmReportService {
if (result.getCode() != 200) {
log.info("华为盒子比对失败,msg={}", result.getMessage());
// 产生告警数据 人脸比对失败,默认为
handleAlarm(deviceIp, smallImg, bigImg, 2, EventSmallTypeEnum.SMART_REPORT_ZJCR, "人脸比对失败");
// handleAlarm(deviceIp, smallImg, bigImg, 2, EventSmallTypeEnum.SMART_REPORT_ZJCR, "人脸比对失败");
return;
}
log.info("人脸比对执行完成,耗时:{}ms", interval.intervalMs());
@@ -93,7 +93,7 @@ public class EventAlarmReportServiceImpl implements IEventAlarmReportService {
if (authRecord == null) {
log.info("人员[{}]没有授权记录,判定为陌生人", person);
// 不是内部人员 产生紧急的告警信息
handleAlarm(deviceIp, smallImg, bigImg, 2, EventSmallTypeEnum.SMART_REPORT_ZJCR, "陌生人员入内");
// handleAlarm(deviceIp, smallImg, bigImg, 2, EventSmallTypeEnum.SMART_REPORT_ZJCR, "陌生人员入内");
return;
} else {
if (Objects.equals(authRecord.getRosterType(), RosterTypeEnum.BLACK_LIST.getCode())) {
@@ -105,7 +105,7 @@ public class EventAlarmReportServiceImpl implements IEventAlarmReportService {
Date now = new Date();
if (DateUtil.compare(now, authRecord.getEndDate()) > 0) {
handleAlarm(deviceIp, smallImg, bigImg, 1, EventSmallTypeEnum.AUTHORIZATION_EXPIRED, "人员授权信息已过期");
// handleAlarm(deviceIp, smallImg, bigImg, 1, EventSmallTypeEnum.AUTHORIZATION_EXPIRED, "人员授权信息已过期");
log.info("当前人脸已过期。person={}", person);
return;
}