|
|
|
@@ -32,6 +32,13 @@ public enum EnumSubBusiness { |
|
|
|
SUB_BUSINESS_ID21(21,"饮品店") |
|
|
|
; |
|
|
|
|
|
|
|
private static Map<Integer,EnumSubBusiness> map |
|
|
|
= new HashMap<Integer,EnumSubBusiness>(); |
|
|
|
static { |
|
|
|
for (EnumSubBusiness value : values()) { |
|
|
|
map.put(value.code, value); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
public static EnumSubBusiness getEnum(Integer code) { |
|
|
|
if (code == null) return null; |
|
|
|
@@ -48,15 +55,6 @@ public enum EnumSubBusiness { |
|
|
|
private Integer code; |
|
|
|
private String message; |
|
|
|
|
|
|
|
private static Map<Integer,EnumSubBusiness> map |
|
|
|
= new HashMap<Integer,EnumSubBusiness>(){ |
|
|
|
{ |
|
|
|
for (EnumSubBusiness value : values()) { |
|
|
|
map.put(value.code, value); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
|
|
|
|
EnumSubBusiness(Integer code, String message) { |
|
|
|
this.code = code; |
|
|
|
this.message = message; |
|
|
|
|