|
@@ -63,18 +63,6 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
|
|
|
//设备序列号
|
|
|
String deviceNo = jsonObject.getStr("DeviceCode");
|
|
|
|
|
|
- new Thread(()->{
|
|
|
- SysLog sysLog = new SysLog();
|
|
|
- sysLog.setPointcut(deviceNo);
|
|
|
- sysLog.setUrl("/LAPI/V1.0/System/Event/Notification/PersonVerification");
|
|
|
- sysLog.setData("");
|
|
|
- sysLog.setRemark("收到人脸识别信息");
|
|
|
- SocketAddress remoteAddress = ctx.channel().remoteAddress();
|
|
|
- sysLog.setRemoteIp(remoteAddress.toString());
|
|
|
- sysLog.setCreateTime(new Date());
|
|
|
- sysLogService.insert(sysLog);
|
|
|
- }).start();
|
|
|
-
|
|
|
//人员温度信息
|
|
|
BigDecimal temperature = faceJson.getBigDecimal("Temperature");
|
|
|
|
|
@@ -102,6 +90,18 @@ public class PersonVerificationHandler extends SimpleChannelInboundHandler<Perso
|
|
|
map.put("matchPersonInfo",matchPersonInfo);
|
|
|
log.warn(map.toString());
|
|
|
|
|
|
+ new Thread(()->{
|
|
|
+ SysLog sysLog = new SysLog();
|
|
|
+ sysLog.setPointcut(deviceNo);
|
|
|
+ sysLog.setUrl("/LAPI/V1.0/System/Event/Notification/PersonVerification");
|
|
|
+ sysLog.setData(map.toString());
|
|
|
+ sysLog.setRemark("收到人脸识别信息");
|
|
|
+ SocketAddress remoteAddress = ctx.channel().remoteAddress();
|
|
|
+ sysLog.setRemoteIp(remoteAddress.toString());
|
|
|
+ sysLog.setCreateTime(new Date());
|
|
|
+ sysLogService.insert(sysLog);
|
|
|
+ }).start();
|
|
|
+
|
|
|
//记录人员记录
|
|
|
personDeviceLogService.deviceInsertLog(deviceNo,temperature,faceImageJson,libMatInfoListJson,matchPersonInfo,date);
|
|
|
|