条码管控枚举添加

yun-zuoyi
刘敏 6 years ago
parent 2eb732c7df
commit b90139312c

@ -2331,4 +2331,38 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum IS_SN_CONTROL {
SN_CONTROL(1, "条码管控"), NOT_SN_CONTROL(2, "非条码管控");
private int value;
private String description;
IS_SN_CONTROL(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