|
|
@@ -1,40 +0,0 @@
|
|
|
-package com.goafanti.customer.bo;
|
|
|
-
|
|
|
-import java.util.HashMap;
|
|
|
-import java.util.Map;
|
|
|
-
|
|
|
-public enum InputChannelState {
|
|
|
- name("name","名称"),
|
|
|
- contacts("contacts","联系人"),
|
|
|
- contactMobile("contactMobile","联系人电话"),
|
|
|
- province("province","省"),
|
|
|
- city("city","市"),
|
|
|
- area("area","区"),
|
|
|
- introduction("introduction","简介"),
|
|
|
- position("position","职位"),
|
|
|
- channelType("channelType","渠道分类");
|
|
|
-
|
|
|
-
|
|
|
- private String code;
|
|
|
- private String desc;
|
|
|
-
|
|
|
- InputChannelState(String code, String desc) {
|
|
|
- this.code = code;
|
|
|
- this.desc = desc;
|
|
|
- }
|
|
|
-
|
|
|
- private static Map<String ,InputChannelState> status=new HashMap<String,InputChannelState>();
|
|
|
-
|
|
|
- static {
|
|
|
- for (InputChannelState value : InputChannelState.values()) {
|
|
|
- status.put(value.code,value);
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- public static String getDesc(String code) {
|
|
|
- for (InputChannelState value : InputChannelState.values()) {
|
|
|
- if (value.code.equals(code))return value.desc;
|
|
|
- }
|
|
|
- return "**";
|
|
|
- }
|
|
|
-}
|