| | |
| | | } |
| | | |
| | | //用来转json |
| | | public static Map<Byte, DistrictLevel> ObjMap = new HashMap<Byte, DistrictLevel>(); |
| | | public static Map<Byte, String> ObjMap = new HashMap<>(); |
| | | static { |
| | | DistrictLevel[] all = DistrictLevel.values(); |
| | | for (DistrictLevel one : all) { |
| | | ObjMap.put(one.code, one); |
| | | ObjMap.put(one.code, one.name); |
| | | } |
| | | } |
| | | |
| | |
| | | this.name = name ; |
| | | } |
| | | //用来转json |
| | | public static Map<String, Org> ObjMap = new HashMap<String, Org>(); |
| | | public static Map<String, String> ObjMap = new HashMap<>(); |
| | | static { |
| | | Org[] all = Org.values(); |
| | | for (Org one : all) { |
| | | ObjMap.put(one.tag, one); |
| | | ObjMap.put(one.tag, one.name); |
| | | } |
| | | } |
| | | |