定时获取库存移动信息开发

yun-zuoyi
Silliter 6 years ago
parent 142e2b47c9
commit aa1b4ac805

@ -2027,15 +2027,12 @@ public class WmsEnumUtil {
LOCKING(3, "全部", "fa cell-fa fa-lock"); LOCKING(3, "全部", "fa cell-fa fa-lock");
private int value; private int value;
private String name; private String code;
private String description; private String description;
DATA_STATUS() { DATA_STATUS(int value, String code, String description) {
}
DATA_STATUS(int value, String name, String description) {
this.value = value; this.value = value;
this.name = name; this.code = code;
this.description = description; this.description = description;
} }
@ -2047,25 +2044,15 @@ public class WmsEnumUtil {
return description; return description;
} }
public String getName() { public String getCode() {
return name; return code;
} }
public static String valueOf(int val) { public static String valueOf(int val) {
String tmp = null; String tmp = null;
for (int i = 0; i < values().length; i++) { for (int i = 0; i < values().length; i++) {
if (values()[i].value == val) { if (values()[i].value == val) {
tmp = values()[i].getName(); tmp = values()[i].getCode();
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].name.equals(desc)) {
tmp = values()[i].value;
} }
} }
return tmp; return tmp;

Loading…
Cancel
Save