| | |
| | | |
| | | // 合同类型字典 |
| | | 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", "科技", "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) { |
| | | 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) { |
| | |
| | | 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 getImportValue() { |
| | | return importValue; |
| | | } |
| | | public String getGoalSetting() { |
| | | return goalSetting; |
| | | } |
| | | } |
| | | } |
| | | } |