ERP同步标识枚举添加

yun-zuoyi
刘敏 6 years ago
parent 3090b2aaad
commit 1b569ff3a8

@ -2760,4 +2760,38 @@ public class WmsEnumUtil {
}
return null;
}
/**
* ERP 10=20=30=
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum WMS_ERP_SYNC_FLAG {
CREATE(10, "待同步"), SUCCESS(20, "同步成功"), FAIL(30, "同步失败");
private int value;
private String description;
WMS_ERP_SYNC_FLAG(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