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

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

@ -2027,15 +2027,12 @@ public class WmsEnumUtil {
LOCKING(3, "全部", "fa cell-fa fa-lock");
private int value;
private String name;
private String code;
private String description;
DATA_STATUS() {
}
DATA_STATUS(int value, String name, String description) {
DATA_STATUS(int value, String code, String description) {
this.value = value;
this.name = name;
this.code = code;
this.description = description;
}
@ -2047,25 +2044,15 @@ public class WmsEnumUtil {
return description;
}
public String getName() {
return name;
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].getName();
}
}
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;
tmp = values()[i].getCode();
}
}
return tmp;

Loading…
Cancel
Save