2020-01-16 16:37 自定义列表优化

yun-zuoyi
宋军超 6 years ago
parent 67ef5c5516
commit 851067b8d2

@ -4920,4 +4920,36 @@ public class WmsEnumUtil {
}
}
/**
* (CUSTOMIZE_PROP)
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum CUSTOMIZE_PROP {
URGENT(1, "默认"), NORMAL(2, "自定义");
private int value;
private String description;
CUSTOMIZE_PROP(int value, String description) {
this.value = value;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
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].description;
}
}
return tmp;
}
}
}
Loading…
Cancel
Save