From c5dfc09145e4e10f99dbf388a4a1433b5c2973e5 Mon Sep 17 00:00:00 2001
From: BAOLH <baolh@yhzhg.cn>
Date: Tue, 10 Nov 2026 01:40:38 +0000
Subject: [PATCH] 适应高版本Nodejs对应修改(二)

---
 eladmin-master/eladmin-common/src/main/java/me/zhengjie/utils/ElAdminConstant.java |  157 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 156 insertions(+), 1 deletions(-)

diff --git a/eladmin-master/eladmin-common/src/main/java/me/zhengjie/utils/ElAdminConstant.java b/eladmin-master/eladmin-common/src/main/java/me/zhengjie/utils/ElAdminConstant.java
index 176a846..bde6cc1 100644
--- a/eladmin-master/eladmin-common/src/main/java/me/zhengjie/utils/ElAdminConstant.java
+++ b/eladmin-master/eladmin-common/src/main/java/me/zhengjie/utils/ElAdminConstant.java
@@ -45,14 +45,104 @@
         public static final String IP_URL = "http://whois.pconline.com.cn/ipJson.jsp?ip=%s&json=true";
     }
 
+    public static class Constant {
+        // 审批模版删除判定:普通
+        public static final String TEMPLATE_DEL_STATUS_NORMAL = "0";
+
+        // 审批模版删除判定:删除
+        public static final String TEMPLATE_DEL_STATUS_DEL = "1";
+
+        // 审批模版语言:中文
+        public static final String TEMPLATE_LANG_ZH = "zh_CN";
+
+        // 审批模版语言:英文
+        public static final String TEMPLATE_LANG_EN = "en";
+
+        // 审批模版控件类型:文本
+        public static final String TEMPLATE_CONTROL_TYPE_TEXT = "Text";
+
+        // 审批模版控件类型:多行文本
+        public static final String TEMPLATE_CONTROL_TYPE_TEXTAREA = "Textarea";
+
+        // 审批模版控件类型:数字
+        public static final String TEMPLATE_CONTROL_TYPE_NUMBER = "Number";
+
+        // 审批模版控件类型:金额
+        public static final String TEMPLATE_CONTROL_TYPE_MONEY = "Money";
+
+        // 审批模版控件类型:日期/日期+时间
+        public static final String TEMPLATE_CONTROL_TYPE_DATE = "Date";
+
+        // 审批模版控件类型:单选/多选
+        public static final String TEMPLATE_CONTROL_TYPE_SELECTOR = "Selector";
+
+        // 审批模版控件类型:成员/部门
+        public static final String TEMPLATE_CONTROL_TYPE_CONTACT = "Contact";
+
+        // 审批模版控件类型:说明文字
+        public static final String TEMPLATE_CONTROL_TYPE_TIPS = "Tips";
+
+        // 审批模版控件类型:附件
+        public static final String TEMPLATE_CONTROL_TYPE_FILE = "File";
+
+        // 审批模版控件类型:明细
+        public static final String TEMPLATE_CONTROL_TYPE_TABLE = "Table";
+
+        // 审批模版控件类型:位置
+        public static final String TEMPLATE_CONTROL_TYPE_LOCATION = "Location";
+
+        // 审批模版控件类型:关联审批单
+        public static final String TEMPLATE_CONTROL_TYPE_RELATEDAPPROVAL = "RelatedApproval";
+
+        // 审批模版控件类型:公式
+        public static final String TEMPLATE_CONTROL_TYPE_FORMULA = "Formula";
+
+        // 审批模版控件类型:时长
+        public static final String TEMPLATE_CONTROL_TYPE_DATERANGE = "DateRange";
+
+        // 审批模版控件类型:假勤组件-请假组件
+        public static final String TEMPLATE_CONTROL_TYPE_VACATION = "Vacation";
+
+        // 审批模版控件类型:假勤组件-出差/外出/加班组件
+        public static final String TEMPLATE_CONTROL_TYPE_ATTENDANCE = "Attendance";
+
+        // 审批模版时长粒度:小时
+        public static final String TEMPLATE_DATE_RANGE_TYPE_HOUR = "hour";
+
+        // 审批模版时长粒度:天
+        public static final String TEMPLATE_DATE_TYPE_HALFDAY = "halfday";
+
+        // 审批模版选择类型:单选
+        public static final String TEMPLATE_SELECTOR_TYPE_SINGLE = "single";
+
+        // 审批模版选择类型:多选
+        public static final String TEMPLATE_SELECTOR_TYPE_MULTI = "multi";
+
+        // 审批模版成员对象:成员
+        public static final String TEMPLATE_CONTACT_MODE_USER = "user";
+
+        // 审批模版成员对象:部门
+        public static final String TEMPLATE_CONTACT_MODE_DEPARTMENT = "department";
+
+        // 审批模版日期类型:日期
+        public static final String TEMPLATE_DATE_TYPE_DATE = "date";
+
+        // 审批模版日期类型:日期+时间
+        public static final String TEMPLATE_DATE_TYPE_HOUR = "hour";
+
+        // 审批模版:控件对应值为空时的默认值
+        public static final String TEMPLATE_CONTROL_NULL_VALUE = "未填写";
+    }
+
     /**
      * 常用枚举
      */
     public static class Enum {
+        // 公司前缀
         public enum CompanySuffix {
             COMPANY_1("以恒(大连)企业管理有限公司", "YHQG"),
             COMPANY_2("大连以恒科技有限公司", "YHKJ"),
-            COMPANY_3("恒春科技(大连)有限公司", "HCKJ"),
+            COMPANY_3("恒春科技(大连)有限责任公司", "HCKJ"),
             COMPANY_4("恒臻科技(大连)有限责任公司", "HZKJ"),
             COMPANY_5("兴安盟恒新知识产权服务有限公司", "XAHX"),
             COMPANY_6("兴安盟以恒科技有限公司", "XAYH"),
@@ -97,5 +187,70 @@
                 return code;
             }
         }
+
+        // 合同类型字典
+        public enum ContractTypeDict {
+            DICT_1("contract_type", "contract_technology",  "technology_second_type", "科技", "project_distinguish_product"),
+            DICT_2("contract_type", "contract_consultation", "consultation_second_type", "咨询", "project_distinguish_performance"),
+            DICT_3("contract_type", "contract_weak_current", "weak_current_second_type", "弱电", "project_distinguish_project"),
+            DICT_4("contract_type", "contract_ip", "ip_second_type", "知识产权", "5");
+
+            private final String dictName;
+            private final String dictValue;
+            private final String secondDictName;
+            private final String importValue;
+            private final String goalSetting;
+
+            ContractTypeDict(String dictName, String dictValue, String secondDictName, String importValue, String goalSetting) {
+                this.dictName = dictName;
+                this.dictValue = dictValue;
+                this.secondDictName = secondDictName;
+                this.importValue = importValue;
+                this.goalSetting = goalSetting;
+            }
+
+            public static ContractTypeDict findByDictValue(String dictValue) {
+                for (ContractTypeDict value : ContractTypeDict.values()) {
+                    if (value.getDictValue().equals(dictValue)) {
+                        return value;
+                    }
+                }
+                return null;
+            }
+
+            public static ContractTypeDict findByImportValue(String importValue) {
+                for (ContractTypeDict value : ContractTypeDict.values()) {
+                    if (value.getImportValue().equals(importValue)) {
+                        return value;
+                    }
+                }
+                return null;
+            }
+
+            public static ContractTypeDict findByGoalSetting(String goalSetting) {
+                for (ContractTypeDict value : ContractTypeDict.values()) {
+                    if (value.getGoalSetting().equals(goalSetting)) {
+                        return value;
+                    }
+                }
+                return null;
+            }
+
+            public String getDictName() {
+                return dictName;
+            }
+            public String getDictValue() {
+                return dictValue;
+            }
+            public String getSecondDictName() {
+                return secondDictName;
+            }
+            public String getImportValue() {
+                return importValue;
+            }
+            public String getGoalSetting() {
+                return goalSetting;
+            }
+        }
     }
 }

--
Gitblit v1.9.3