From c45a2129b51276efd8d290c44e2943e5d3a764e7 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 19 十二月 2023 09:20:47 +0800
Subject: [PATCH] 海康接口对接开发

---
 server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
index 4fe02c2..d278adf 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -66,6 +66,8 @@
     public static  boolean DEALING_HK_IMG = false;
     public static  boolean DEALING_HK_ORG = false;
     public static  boolean DEALING_HK_USER = false;
+    public static  boolean DEALING_HK_VISIT = false;
+    public static  boolean DEALING_HK_EMPOWER = false;
     // ERP鎺ュ彛閰嶇疆
     public static final String ERP_CONFIG = "ERP_CONFIG";
     // ERP ACCESS_KEY
@@ -85,10 +87,22 @@
     try {
         birthday = dateFormat.parse(birthdayString);
     } catch (Exception e) {
-        throw new RuntimeException(e);
+//        throw new RuntimeException(e);
     }
     return  birthday;
 }
+    public static  Integer   getSexByCardNo(String idCard){
+        if(idCard ==null || idCard.length()<17){
+            return null;
+        }
+        String str = idCard.substring(16, 17); // 鎴彇韬唤璇佸彿鐨勫墠鍏綅鏁板瓧浣滀负鍑虹敓鏃ユ湡
+        try {
+            Integer num  = Integer.parseInt(str);
+            return  (num % 2 !=0) ? 1:2 ;
+        } catch (Exception e) {
+        }
+        return  null;
+    }
 
     /**
      *   鍒ゆ柇鏄惁涓烘湁鏁堣溅鐗屽彿

--
Gitblit v1.9.3