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

添加服务追踪

parent 8b029f24
...@@ -107,13 +107,10 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent ...@@ -107,13 +107,10 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent
//处理识别业务 todo //处理识别业务 todo
Double similarity = DataUtil.converStr2Double(GlobalSysInfo.getParamValue(ParamKey.PARAM_FACE_SIMILARITY, "0.8"), 0); Double similarity = DataUtil.converStr2Double(GlobalSysInfo.getParamValue(ParamKey.PARAM_FACE_SIMILARITY, "0.8"), 0);
//String similarity = GlobalSysInfo.getParamValue(ParamKey.PARAM_FACE_SIMILARITY, "0.8"); //String similarity = GlobalSysInfo.getParamValue(ParamKey.PARAM_FACE_SIMILARITY, "0.8");
Params params = req.getParams(); Params params = req.getParams();
if (HikAbilityEnum.人脸识别事件.getValue().equals(params.getAbility())) { if (HikAbilityEnum.人脸识别事件.getValue().equals(params.getAbility())) {
for (EventsItem event : params.getEvents()) { for (EventsItem event : params.getEvents()) {
EventTypeAbstract eventTypeAbstract = EventTypeAbstract.newType(event.getEventType()); EventTypeAbstract eventTypeAbstract = EventTypeAbstract.newType(event.getEventType());
eventTypeAbstract.saveEventData(event); eventTypeAbstract.saveEventData(event);
// assessmentAbstract.initBidData(projectEntity, entity, supplierEntities); // assessmentAbstract.initBidData(projectEntity, entity, supplierEntities);
...@@ -149,8 +146,6 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent ...@@ -149,8 +146,6 @@ public class HikEventServiceImpl extends AbstractHikService implements IHikEvent
dataflowService.save(realtimeDataflowEntity); dataflowService.save(realtimeDataflowEntity);
}*/ }*/
} }
} }
......
...@@ -56,7 +56,6 @@ public class StrangerRecoginze extends EventTypeAbstract { ...@@ -56,7 +56,6 @@ public class StrangerRecoginze extends EventTypeAbstract {
realtimeDataflowEntity.setCreateUserId(1L); realtimeDataflowEntity.setCreateUserId(1L);
realtimeDataflowEntity.setCreateTime(new Date()); realtimeDataflowEntity.setCreateTime(new Date());
realtimeDataflowEntity.setCreateUserName("system"); realtimeDataflowEntity.setCreateUserName("system");
realtimeDataflowEntity.initAttrValue();
dataflowService.save(realtimeDataflowEntity); dataflowService.save(realtimeDataflowEntity);
} }
......
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