yun-zuoyi
amy 6 years ago
commit 79b11c1225

@ -2031,4 +2031,38 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ORDER_IS_SN {
IS_APPOINT_SN(1, "指定条码"), APPOINT_SN(2, "不指定条码");
private int value;
private String description;
ORDER_IS_SN(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