po版本枚举

yun-zuoyi
Jack.lv 6 years ago
parent 2e020d7be2
commit 73d2da12ed

@ -2151,4 +2151,44 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum VERSION {
PO_VERSION(10, "VERSION", "PO版本号");
private int value;
private String code;
private String description;
VERSION(int value, String code, String description){
this.value = value;
this.description = description;
this.code = code;
}
public int getValue () {
return value;
}
public String getDescription () {
return description;
}
public String getCode() {
return code;
}
public static String valueOf (int val){
String tmp = null;
for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) {
tmp = values()[i].getDescription();
}
}
return tmp;
}
}
}

Loading…
Cancel
Save