From bf8d85d5f83c2036fb4239d764d33e99c1b62bd3 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 31 五月 2024 14:53:23 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 server/system_service/src/main/java/com/doumee/core/utils/Constants.java |   52 ++++++++++++++++++++++++++++++++--------------------
 1 files changed, 32 insertions(+), 20 deletions(-)

diff --git a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
index 8c421d1..6ba808c 100644
--- a/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/system_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -25,6 +25,7 @@
 public class Constants {
     public static final String HEADER_USER_TOKEN = "dm_user_token";
     public static final String REDIS_TOKEN_KEY = "token_";
+    public static final String REDIS_HK_TOKEN_KEY = "hk_token_";
     public static final String[]  ALL_SPELL_LIST_FIRST = new String[]{"A", "B", "C", "D", "E", "F", "G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
     public static final int ZERO = 0 ;
     public static final int ONE = 1 ;
@@ -102,7 +103,7 @@
     public static final String HIDDEN_DANGER_FILE = "HIDDEN_DANGER_FILE";
     public static final String LOG_DEL_DAYS_LIMIT ="LOG_DEL_DAYS_LIMIT" ;
     public static final String HK_LOG_DEL_DAYS_LIMIT ="HK_LOG_DEL_DAYS_LIMIT" ;
-
+    public static final String HK_NGINX_URL = "HK_NGINX_URL";
     public static  boolean DEALING_HK_SYNCPRIVILEGE= false;
     public static  boolean DEALING_HK_SYNCDEVICE = false;
     public static  boolean DEALING_HK_SYNCDEVICE_STATUS = false;
@@ -299,14 +300,6 @@
          int invalid =9;
     }
 
-    public interface multifileObjType{
-        //0闅愭偅鐜板満鎯呭喌 1闅愭偅澶勭悊鍓嶆儏鍐� 2闅愭偅澶勭悊鍚庢儏鍐� 3闅愭偅閫�鍥炶鏄�
-        int zero = 0;
-        int one = 1;
-        int two = 2;
-        int three = 3;
-    }
-
 
     public interface EmpowerStatus{
         //涓�鍗¢�氭巿鏉冧笅鍙戠姸鎬� 0寰呬笅鍙� 1宸蹭笅鍙� 2涓嬪彂鎴愬姛   3宸插彇娑� 4涓嬪彂澶辫触 5浠诲姟涓嬭浇宸茬粨鏉�
@@ -386,15 +379,6 @@
         return  d;
     }
 
-    public static boolean equalsObject(Object a, Object b) {
-        if (a == null && b == null) {
-            return true;
-        }
-        if (a != null){
-            return a.equals(b);
-        }
-        return false;
-    }
 
 
     public static boolean equalsInteger(Integer a, Integer b) {
@@ -433,9 +417,35 @@
     int cityUseCar = 3;//甯傚唴鐢ㄨ溅
     int unCityUseCar = 4;//甯傚鐢ㄨ溅
     int logisticsCarUse = 5;//鐗╂祦杞﹂绾�
+}
+
+
+
+public static Integer  approveTypeToNoticeType(Integer approveType){
+    if(Constants.equalsInteger(approveType,Constants.approveObjectType.unConstructionVisit)
+            ||Constants.equalsInteger(approveType,Constants.approveObjectType.constructionVisit)){
+        return Constants.noticesObjectType.visit;
+    }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.visitReporting)){
+        return Constants.noticesObjectType.visitReporting;
+    }else if(Constants.equalsInteger(approveType,Constants.approveObjectType.cityUseCar)
+            ||Constants.equalsInteger(approveType,Constants.approveObjectType.unCityUseCar)){
+        return Constants.noticesObjectType.useCar;
+    }else {
+        return Constants.noticesObjectType.system;
+    }
 
 }
 
+
+
+    public interface  noticesObjectType{
+    int visit = 0;//璁垮鐢宠
+    int visitReporting = 1;//璁垮鎶ュ
+    int useCar = 2;//鐢ㄨ溅鐢宠
+    int dangerDeal = 3;//闅愭偅澶勭悊
+    int logisticsCarUse = 4;//鐗╂祦杞﹀鎵�
+    int system = 5;//绯荤粺娑堟伅
+}
 
 
 public interface  approveStatus{
@@ -443,8 +453,8 @@
     int auditIng = 1;//瀹℃壒涓�
     int pass = 2;//瀹℃壒閫氳繃
     int unPass = 3;//瀹℃壒鏈�氳繃
-    int otherDeal = 4;//浠栦汉宸插鐞�
-    int cancel = 5;//宸插彇娑�
+    int cancel = 4;//宸插彇娑�
+    int otherDeal = 5;//浠栦汉宸插鐞�
     int otherUnPass = 6;//浠栦汉鎷掔粷
 }
 
@@ -585,6 +595,8 @@
         return reqJson;
     }
 
+
+
     public  enum NoticeType {
 
         ZERO(0, "寰呭鏍�","","","寰呭鏍�","寰呭鐞�","澶勭悊涓�"),

--
Gitblit v1.9.3