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