新增NC处理的操作类型枚举

yun-zuoyi
jessica.chen 6 years ago
parent b99c28e1b1
commit 00ee87f645

@ -2253,4 +2253,57 @@ public class WmsEnumUtil {
return description;
}
}
/**
* NC
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum NC_HANDLE_BUSI_TYPE {
RECEPTION(10, "RECEPTION", "让步接收"),
SCRAP(20, "SCRAP", "报废"),
QUARANTINE(30, "QUARANTINE", "隔离"),
BACK_QUARANTINE(40, "BACK_QUARANTINE", "反隔离");
private int value;
private String code;
private String description;
NC_HANDLE_BUSI_TYPE(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
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].description;
}
}
return tmp;
}
public static int descOf(String desc) {
int tmp = 1;
for (int i = 0; i < values().length; i++) {
if (values()[i].description.equals(desc)) {
tmp = values()[i].value;
}
}
return tmp;
}
}
}

Loading…
Cancel
Save