| | |
| | | |
| | | // 合同类型字典 |
| | | 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"); |
| | | 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; |
| | | private final String importValue; |
| | | |
| | | ContractTypeDict(String dictName, String dictValue, String secondDictName) { |
| | | ContractTypeDict(String dictName, String dictValue, String secondDictName, String importValue) { |
| | | this.dictName = dictName; |
| | | this.dictValue = dictValue; |
| | | this.secondDictName = secondDictName; |
| | | this.importValue = importValue; |
| | | } |
| | | |
| | | 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; |
| | | } |
| | | } |
| | |
| | | public String getSecondDictName() { |
| | | return secondDictName; |
| | | } |
| | | public String getImportValue() { |
| | | return importValue; |
| | | } |
| | | } |
| | | } |
| | | } |