| | |
| | | * 常用枚举 |
| | | */ |
| | | public static class Enum { |
| | | // 公司前缀 |
| | | public enum CompanySuffix { |
| | | COMPANY_1("以恒(大连)企业管理有限公司", "YHQG"), |
| | | COMPANY_2("大连以恒科技有限公司", "YHKJ"), |
| | |
| | | return code; |
| | | } |
| | | } |
| | | |
| | | // 合同类型字典 |
| | | public enum ContractTypeDict { |
| | | DICT_1("contract_type", "contract_technology", "technology_second_type"), |
| | | DICT_2("contract_type", "contract_consultation", "consultation_second_type"), |
| | | DICT_3("contract_type", "contract_weak_current", "weak_current_second_type"), |
| | | DICT_4("contract_type", "contract_ip", "ip_second_type"); |
| | | |
| | | private final String dictName; |
| | | private final String dictValue; |
| | | private final String secondDictName; |
| | | |
| | | ContractTypeDict(String dictName, String dictValue, String secondDictName) { |
| | | this.dictName = dictName; |
| | | this.dictValue = dictValue; |
| | | this.secondDictName = secondDictName; |
| | | } |
| | | |
| | | public static ContractTypeDict findByDictValue(String dictValue) { |
| | | for (ContractTypeDict value : ContractTypeDict.values()) { |
| | | if (value.getDictValue().equals(dictValue)) { |
| | | return value; |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | public String getDictName() { |
| | | return dictName; |
| | | } |
| | | public String getDictValue() { |
| | | return dictValue; |
| | | } |
| | | public String getSecondDictName() { |
| | | return secondDictName; |
| | | } |
| | | } |
| | | } |
| | | } |