条码类型枚举添加

yun-zuoyi
amy 7 years ago
parent b2e4c2496a
commit 256c2acd41

@ -1695,4 +1695,40 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum SN_TYPE {
ONE_DIMENSIONAL_CODE(10, "一维码"),
QR_CODE(20, "二维码"),
ALL(30, "ALL");
private int value;
private String description;
SN_TYPE(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