智能识别

This commit is contained in:
cwchen 2024-08-27 18:48:12 +08:00
parent 6cc2688f21
commit 5c9774a8b5
2 changed files with 4 additions and 3 deletions

View File

@ -130,7 +130,8 @@ public class SmartIdentifyController {
switchEvent(evenID, element, eventTime, puid, ballName,idCard, devices);
// 事件推送成功后设置缓存
String key = evenID + "_" + puid;
redisService.setCacheObject(key, puid, 1L, TimeUnit.MILLISECONDS);
log.info("redis-key:{}",key);
redisService.setCacheObject(key, puid, 100L, TimeUnit.MILLISECONDS);
} else {
return "error";
}
@ -165,7 +166,7 @@ public class SmartIdentifyController {
log.info(puid + ":违章事件:人脸识别");
deviceUseVo.setWarnContent("未戴安全帽");
files = deviceVolEvenHandler(puid, eventTime, element);
service.addEventData(deviceUseVo, files);
// service.addEventData(deviceUseVo, files);
break;
case "E_IVS_HelmetNotWear":
log.info(puid + ":违章事件:未戴安全帽");

View File

@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="warnTime != null and warnTime!=''">#{warnTime},</if>
<if test="devType != null">#{devType},</if>
<if test="peopleType != null">#{peopleType},</if>
#{createTime}
#{createTime},
#{delFlag},
null
</trim>