diff --git a/bonus-modules/bonus-tcp/src/main/java/com/bonus/tcp/smartIdentify/controller/SmartIdentifyController.java b/bonus-modules/bonus-tcp/src/main/java/com/bonus/tcp/smartIdentify/controller/SmartIdentifyController.java
index 29bd96f..c20bae3 100644
--- a/bonus-modules/bonus-tcp/src/main/java/com/bonus/tcp/smartIdentify/controller/SmartIdentifyController.java
+++ b/bonus-modules/bonus-tcp/src/main/java/com/bonus/tcp/smartIdentify/controller/SmartIdentifyController.java
@@ -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 + ":违章事件:未戴安全帽");
diff --git a/bonus-modules/bonus-tcp/src/main/resources/mapper/tcp/ConsControlMapper.xml b/bonus-modules/bonus-tcp/src/main/resources/mapper/tcp/ConsControlMapper.xml
index 9e585b3..02d20e6 100644
--- a/bonus-modules/bonus-tcp/src/main/resources/mapper/tcp/ConsControlMapper.xml
+++ b/bonus-modules/bonus-tcp/src/main/resources/mapper/tcp/ConsControlMapper.xml
@@ -28,7 +28,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
#{warnTime},
#{devType},
#{peopleType},
- #{createTime}
+ #{createTime},
#{delFlag},
null