From eea92f23bf8ead897f346ae6ccc8603ac039e566 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 30 七月 2024 09:48:47 +0800
Subject: [PATCH] 修复bug

---
 server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java b/server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java
index c0f4baf..0644266 100644
--- a/server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java
+++ b/server/dmvisit_admin/src/main/java/com/doumee/service/impl/HkSyncEventServiceImpl.java
@@ -87,7 +87,14 @@
 
         param.setEventDest(path+"/visit");
         param.setEventTypes(new Integer[]{HKConstants.EventTypes.VISIT_SIGN_IN.getKey()
-                ,HKConstants.EventTypes.VISIT_SIGN_OUT.getKey()});
+                ,HKConstants.EventTypes.VISIT_SIGN_OUT.getKey() });
+        HKService.cancelEventSub(param);//鍏堝彇娑�
+        HKService.eventSub(param);//璁垮浜嬩欢
+
+        param.setEventDest(path+"/visitIccm");
+        param.setEventTypes(new Integer[]{HKConstants.EventTypes.VISIT_SIGN_ICCM_IN.getKey()
+                ,HKConstants.EventTypes.VISIT_SIGN_ICCM_PASS.getKey()
+                ,HKConstants.EventTypes.VISIT_SIGN_ICCM_OUT.getKey()});
         HKService.cancelEventSub(param);//鍏堝彇娑�
         HKService.eventSub(param);//璁垮浜嬩欢
 
@@ -95,7 +102,6 @@
         param.setEventTypes(new Integer[]{HKConstants.EventTypes.DOOR_FACE_AUTH_FAIL.getKey(),HKConstants.EventTypes.DOOR_FACE_AUTH_SUCCESS.getKey()});
         HKService.cancelEventSub(param);//鍏堝彇娑�
         HKService.eventSub(param);//闂ㄧ浜嬩欢
-
     }
     /**
      * 鍙栨秷璁㈤槄闂ㄧ浜嬩欢銆佽瀹簨浠躲�佸拰鍋滆溅鍦轰簨浠�

--
Gitblit v1.9.3