Commit d2af209a authored by 赵啸非's avatar 赵啸非

添加服务追踪

parent 970689b6
......@@ -39,7 +39,7 @@ public class StrangerRecoginze extends EventTypeAbstract {
@Override
public void saveEventData(EventsItem event) {
log.info("处理陌生人事件,event:{}", JSON.toJSONString(event));
log.info("处理陌生人事件,event:{}", event.getEventId());
EventData eventData = event.getData();
//识别结果
FaceRecognitionResult faceRecognitionResult = eventData.getFaceRecognitionResult();
......@@ -54,7 +54,7 @@ public class StrangerRecoginze extends EventTypeAbstract {
String resIndexCodes = eventData.getResInfo().stream().map(i -> i.getIndexCode()).collect(Collectors.joining(","));
realtimeDataflowEntity.setDevice(resIndexCodes);
realtimeDataflowEntity.setPicUri(snap.getFaceUrl());
if(!ObjectUtils.isEmpty(eventData.getResInfo())){
if (!ObjectUtils.isEmpty(eventData.getResInfo())) {
realtimeDataflowEntity.setLocation(eventData.getResInfo().get(0).getCn());
}
realtimeDataflowEntity.setEventId(event.getEventId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment