|
|
@@ -133,7 +133,9 @@ public class RedisExpiredPhotographListener extends KeyExpirationEventMessageLis
|
|
|
algorithmWarningBo.setId(warningNoticeLog.getId());
|
|
|
algorithmWarningBo.setFileUrl(fileR.getData().getUrl());
|
|
|
//algorithmWarningBo.setFileUrl("d:\\test.jpg");
|
|
|
+ log.info("调用算法服务识别!");
|
|
|
ResultData resultData = remoteForwardService.warningCheck(algorithmWarningBo);
|
|
|
+ log.info("调用算法服务返回结果:result={}",JSON.toJSONString(resultData));
|
|
|
if (HttpStatus.SUCCESS == resultData.getCode()) {
|
|
|
//算法调用 默认返回成功!
|
|
|
//if (HttpStatus.SUCCESS != 200) {
|
|
|
@@ -166,7 +168,7 @@ public class RedisExpiredPhotographListener extends KeyExpirationEventMessageLis
|
|
|
StringBuffer userIds = new StringBuffer();
|
|
|
StringBuffer phones = new StringBuffer();
|
|
|
if (!redisService.hasKey(key)) {
|
|
|
- log.info("进入最终循环!");
|
|
|
+ log.info("进入最后一次循环!");
|
|
|
//如果没有这个key了 则统计异常率
|
|
|
//查询配置
|
|
|
WarningConfig warningConfig = warningConfigService.getOne(new LambdaQueryWrapper<WarningConfig>().eq(WarningConfig::getWarningType, 1));
|
|
|
@@ -175,9 +177,8 @@ public class RedisExpiredPhotographListener extends KeyExpirationEventMessageLis
|
|
|
List<WarningDetail> collect = list.stream().filter(i -> i.getResult() == true).collect(Collectors.toList());
|
|
|
double rate = NumberUtil.div(collect.size(), warningConfig.getAnomalyCount().intValue());
|
|
|
double rate2 = NumberUtil.div(warningConfig.getAnomalyRate(), new Double(100));
|
|
|
- log.info("rate={},rate2={}",rate,rate2);
|
|
|
+ log.info("当前识别率={},目标识别率={}",rate,rate2);
|
|
|
if (rate > rate2) {
|
|
|
-
|
|
|
WarningNoticeLogDto warningNoticeLogDto = new WarningNoticeLogDto();
|
|
|
warningNoticeLogDto.setId(warningNoticeLog.getId());
|
|
|
warningNoticeLogDto.setWarningType(1);
|