【欧洲-定时悬挂链汇总更新库存数据JOB-优化】

yun-zuoyi
曾贞一 5 years ago
parent 34a9cbe0ac
commit 6dd0614533

@ -8787,78 +8787,4 @@ public class WmsEnumUtil {
return null;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SUSPEN_STOCK_SYNC_DATA_SRC {
IP(10, "IP", "IP"),
DF(20, "DF", "DF"),
DR(30, "DR", "DR");
int value;
private String code;
private String description;
public int getValue() {
return value;
}
public String getCode() {
return code;
}
public String getDescription() {
return description;
}
SUSPEN_STOCK_SYNC_DATA_SRC(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = 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;
}
public static String valueOfDescription(int val) {
return valueOf(val);
}
public static int descriptionOfValue(String desc) {
return descOf(desc);
}
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;
}
public static SUSPEN_STOCK_SYNC_DATA_SRC codeOf(String code) {
if (StringUtils.isEmpty(code)) {
return null;
} else {
for (int i = 0; i < values().length; i++) {
if (values()[i].code.equalsIgnoreCase(code)) {
return values()[i];
}
}
}
return null;
}
}
}

Loading…
Cancel
Save