From 6765787baa5e0b771d71f865c4deb776367410c4 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期二, 13 八月 2024 13:38:19 +0800 Subject: [PATCH] 修复bug --- server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java | 317 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 files changed, 304 insertions(+), 13 deletions(-) diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java index b063441..0d8cfe6 100644 --- a/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java +++ b/server/dmvisit_service/src/main/java/com/doumee/core/haikang/model/HKConstants.java @@ -1,15 +1,25 @@ package com.doumee.core.haikang.model; import com.doumee.core.utils.Constants; +import javafx.scene.effect.BlendMode; import lombok.Data; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @Data public class HKConstants { + public static final String IMG_INDEX ="HKIMG=" ; + public static final String IMG_INDEX_ERROR ="HKIMG_ERROR=" ; + public static final String RES_ORG_INDEX = "DMO"; + public static final String RES_ORG_NAME_INDEX = "_ERP"; + public static final String RES_USER_INDEX = "DMU"; private Logger logger = LoggerFactory.getLogger(HKConstants.class); //娴峰悍骞冲彴鏍规嵁鐜板満鐜閰嶇疆http杩樻槸https public static final String RESPONSE_SUCCEE = "0"; + public static final String RESPONSE_DOWNLOAD_ERROR= "0x15406001"; + public static final String RESPONSE_FACE_ERROR= "0x1540350c";//鍥炶皟閿欒锛氫汉鑴稿缓妯″け璐� + public static final String RESPONSE_FACE_ERROR2= "0x1540350d";//鍥炶皟閿欒锛氫汉鑴哥溂闂磋窛澶皬 + public static String https ; /** * 鑳藉姏寮�鏀惧钩鍙扮殑缃戠珯璺緞 璺緞涓嶇敤淇敼锛屽氨鏄�/artemis @@ -22,8 +32,13 @@ public interface InterfacePath{ // String doorEvents = "/api/acs/v2/door/events";//闂ㄧ浜嬩欢鏌ヨ // String visitEvents = "/api/visitor/v1/event/turnover/search";//璁垮浜嬩欢鏌ヨ -// String parkEvents = "/api/pms/v1/crossRecords/page";//鍋滆溅鍦轰簨浠舵煡璇� + String parkCrossRecords = "/api/pms/v1/crossRecords/page";//鍋滆溅鍦鸿繃绋嬭褰� String rootOrg = "/api/resource/v1/org/rootOrg";//鑾峰彇璺熺粍缁� + String orgAllList = "/api/resource/v1/org/orgList";//鑾峰彇鍏ㄩ噺缁勭粐淇℃伅 + String userAllList = "/api/resource/v2/person/personList";//鑾峰彇鍏ㄩ噺鐢ㄦ埛鍒楄〃 + String personList = "/api/resource/v2/person/advance/personList";//鏌ヨ浜哄憳鍒楄〃v2 + String orgTimeRangeList = "/api/resource/v1/org/timeRange";//澧為噺鑾峰彇缁勭粐淇℃伅 + String userTimeRangeList = "/api/resource/v1/person/personList/timeRange";//澧為噺鑾峰彇鐢ㄦ埛鍒楄〃 String addBatchOrg = "/api/resource/v1/org/batch/add";//鎵归噺鏂板缁勭粐 String delBatchOrg = "/api/resource/v1/org/batch/delete";//鎵归噺鍒犻櫎缁勭粐 String editOrg = "/api/resource/v1/org/single/update";//淇敼缁勭粐 @@ -50,32 +65,50 @@ String privilegeGroup= "/api/visitor/v1/privilege/group";//鏌ヨ璁垮鏉冮檺缁� String eventSub= "/api/eventService/v1/eventSubscriptionByEventTypes";//浜嬩欢璁㈤槄 String doorSearch= "/api/resource/v2/door/search";//鏌ヨ闂ㄧ鐐瑰垪琛╲2 + String cancelEventSub= "/api/eventService/v1/eventUnSubscriptionByEventTypes";//鍙栨秷浜嬩欢璁㈤槄 + String visitPicture= "/api/visitor/v1/record/pictures";//鑾峰彇璁垮璁板綍涓殑鍥剧墖 + String devicePicture= "/api/acs/v1/event/pictures";//鑾峰彇闂ㄧ浜嬩欢鐨勫浘鐗� + String carPicture= "/api/pms/v1/image";//鏌ヨ杞﹁締鎶撴媿鍥剧墖 + String taskAddition= "/api/acps/v1/authDownload/task/addition";//鍒涘缓涓嬭浇浠诲姟_鏍规嵁浜哄憳涓庤澶囬�氶亾鎸囧畾涓嬭浇 + String taskDataAddition= "/api/acps/v1/authDownload/data/addition";//涓嬭浇浠诲姟涓坊鍔犳暟鎹甠鏍规嵁浜哄憳涓庤澶囬�氶亾鎸囧畾涓嬭浇 + String taskStart= "/api/acps/v1/authDownload/task/start";//寮�濮嬩笅杞戒换鍔� + String taskProgressNum= "/api/acps/v1/authDownload/task/progress";//鏌ヨ涓嬭浇浠诲姟杩涘害 + String taskProgress= "/api/acps/v2/download_record/person/detail/search";//鏌ヨ璁惧閫氶亾鐨勪汉鍛樻潈闄愪笅杞借鎯呮�绘暟v2 + String authItemList= "/api/acps/v1/auth_item/list/search";//鏌ヨ鏉冮檺鏉$洰鍒楄〃 + String cardBingding= "/api/cis/v1/card/bindings";//鎵归噺寮�鍗� + String cardDeletion= "/api/cis/v1/card/deletion";//鍗$墖閫�鍗� + String cardLoss= "/api/cis/v1/card/batch/loss";//鎵归噺鎸傚け + String cardUnloss= "/api/cis/v1/card/batch/unLoss";//鎵归噺瑙f寕 + String taskPersoDetail= "/api/acps/v1/download_record/person/detail/search";//鏌ヨ璁惧閫氶亾鐨勪汉鍛樻潈闄愪笅杞借鎯� + String appointmentRecords= "/api/visitor/v2/appointment/records";//鏌ヨ璁垮棰勭害璁板綍v2 + String appointmentRecordsIccm= "/api/iccm/v2/appointment/records";//iccm鏌ヨ璁垮棰勭害璁板綍V2 + String visitingRecords= "/api/visitor/v2/visiting/records";//鏌ヨ璁垮鏉ヨ璁板綍v2 + String vehicleList= "/api/resource/v2/vehicle/advance/vehicleList";//鏌ヨ杞﹁締鍒楄〃v2 + String vehicleTimeRangeList= "/api/resource/v1/vehicle/timeRange";//澧為噺鑾峰彇杞﹁締鏁版嵁 + String facePictureCheck= "/api/frs/v1/face/picture/check";//浜鸿劯璇勫垎 + String acsDeviceStatus= "/api/nms/v1/online/acs_device/get";//鑾峰彇闂ㄧ璁惧鍦ㄧ嚎鐘舵�� + String tempCarInRecords= "/api/pms/v1/tempCarInRecords/page";//鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭� + String appointmentEventQuery= "/api/iccm/v1/event/query";//鏌ヨ鍦哄唴杞﹀仠杞︿俊鎭� } /** - * 椤旇壊鏋氫妇 + * 浠诲嫏椤炲瀷 */ - public enum EventTypes { + public enum TASK_TYPE { - PARK_LINE_IN(771760130, "鍏ュ満鍘嬬嚎浜嬩欢" ), - PARK_PASS_IN(771760131, "鍏ュ満鏀捐浜嬩欢" ), - PARK_LINE_OUT(771760133, "鍑哄満鍘嬬嚎浜嬩欢" ), - PARK_PASS_OUT(771760134, "鍑哄満鏀捐浜嬩欢" ), - VISIT_SIGN_IN(1392513025, "璁垮鐧昏" ), - VISIT_SIGN_OUT(1392513026, "璁垮绛剧" ), - DOOR_FACE_AUTH_FAIL(197163, "浜鸿劯璁よ瘉澶辫触" ), - DOOR_FACE_AUTH_SUCCESS(196893, "浜鸿劯璁よ瘉閫氳繃" ) + CARD(1, "鍗$墖" ), + FACE(4, "浜鸿劯" ), + CARD_FACE(5, "鍗$墖+浜鸿劯锛堢粍鍚堬級" ), ; // 鎴愬憳鍙橀噺 private String name; private int key; // 鏋勯�犳柟娉� - EventTypes(int key, String name ) { + TASK_TYPE(int key, String name ) { this.name = name; this.key = key; } - // get set 鏂规硶 @@ -92,6 +125,221 @@ } public void setKey(int key) { + this.key = key; + } + + } + /** + * 鍗$被鍨嬶紝涓虹┖鏃堕粯璁ゆ甯告櫘閫氬崱 + * 1: 鏅�氬崱 + * 2: 琛屽姩涓嶄究浜哄+鍗� + * 3: 榛戝悕鍗曞崱 + * 4:宸℃煡鍗� + * 5:鑳佽揩鍗� + * 6:瓒呯骇鍗� + */ + public enum CARD_TYPE { + + NORMAL(1, "鏅�氬崱" ), + XDBB(2, "琛屽姩涓嶄究浜哄+鍗�" ), + BLACK(3, "榛戝悕鍗曞崱" ), + PATROL(4, "宸℃洿鍗�" ), + HIJACK(5, "鑳佽揩鍗�" ), + SUPER(6, "瓒呯骇鍗�" ), + ; + // 鎴愬憳鍙橀噺 + private String name; + private int key; + + // 鏋勯�犳柟娉� + CARD_TYPE(int key, String name ) { + this.name = name; + this.key = key; + } + + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + } + /** + * 鎿嶄綔绫诲瀷锛�0鏂板锛�1淇敼锛�2鍒犻櫎 + */ + public enum OPERA_TYPE { + + ADD(0, "鏂板" ), + UDPATE(1, "淇敼" ), + DEL(2, "鍒犻櫎" ) + ; + // 鎴愬憳鍙橀噺 + private String name; + private int key; + + // 鏋勯�犳柟娉� + OPERA_TYPE(int key, String name ) { + this.name = name; + this.key = key; + } + + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + } + /** + * 椤旇壊鏋氫妇 + */ + public enum EventTypes { + + PARK_LINE_IN(771760130, "鍏ュ満鍘嬬嚎浜嬩欢" ), + PARK_PASS_IN(771760131, "鍏ュ満鏀捐浜嬩欢" ), + PARK_LINE_OUT(771760133, "鍑哄満鍘嬬嚎浜嬩欢" ), + PARK_PASS_OUT(771760134, "鍑哄満鏀捐浜嬩欢" ), + VISIT_SIGN_IN(1392513025, "璁垮鐧昏" ), + VISIT_SIGN_OUT(1392513026, "璁垮绛剧" ), + VISIT_SIGN_ICCM_IN(541200006, "璁垮鐧昏" ), + VISIT_SIGN_ICCM_OUT(541200007, "璁垮绛剧" ), + VISIT_SIGN_ICCM_PASS(541200060, "璁垮閫氳" ), + DOOR_FACE_AUTH_FAIL(197163, "浜鸿劯璁よ瘉澶辫触" ), + DOOR_FACE_AUTH_SUCCESS(196893, "浜鸿劯璁よ瘉閫氳繃" ) + ; + // 鎴愬憳鍙橀噺 + private String name; + private int key; + + public static String getName(int index) { + for (EventTypes c : EventTypes.values()) { + if (c.getKey() == index) { + return c.name; + } + } + return null; + } + // 鏋勯�犳柟娉� + EventTypes(int key, String name ) { + this.name = name; + this.key = key; + } + + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + } + + /** + * 璇佷欢绫诲瀷 + */ + public enum CertificateType { + + SHENFENZHENG(111, "韬唤璇�" ), + HUZHAO(414, "鎶ょ収" ), + HUKOUBEN(113, "鎴峰彛绨�" ), + JIASHIZHENG(335, "椹鹃┒璇�" ), + GONGXUOZHENG(131, "宸ヤ綔璇�" ), + XUESHENGZHENG(133, "瀛︾敓璇�" ), + QITA(990, "鍏朵粬" ) + ; + // 鎴愬憳鍙橀噺 + private String name; + private int key; + + // 鏋勯�犳柟娉� + CertificateType(int key, String name ) { + this.name = name; + this.key = key; + } + + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + } + public enum ReturnCode { + + PARK_LINE_IN("0x00072001", "璧勬簮淇℃伅涓嶅瓨鍦�" ) + ; + // 鎴愬憳鍙橀噺 + private String name; + private String key; + + // 鏋勯�犳柟娉� + ReturnCode(String key, String name ) { + this.name = name; + this.key = key; + } + + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getKey() { + return key; + } + + public void setKey(String key) { this.key = key; } @@ -134,7 +382,50 @@ } + /** + * 鍗$姸鎬� + */ + public enum CardStatus { + DISABLE(0, "绂佺敤"), + ENABLE(1, "鍚敤"), + REFUNDCARD(2, "閫�鍗�"), + LOSS(3, "鎸傚け"), + + /** 鍗$被鍨� **/ + IC(1,"IC鍗�"), + CPU(2,"CPU鍗�"), + YJLCARD(3,"杩滆窛绂诲崱"), + MCARD(4,"M鍗�"); + + // 鎴愬憳鍙橀噺 + private String name; + private int key; + + // 鏋勯�犳柟娉� + CardStatus(int key, String name ) { + this.name = name; + this.key = key; + } + + // get set 鏂规硶 + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + } } -- Gitblit v1.9.3