SWEB添加条码状态枚举

yun-zuoyi
钮海涛 5 years ago
parent 97fb0bfd29
commit 471208d051

@ -647,4 +647,57 @@ public class SwebEnumUtil {
return valueOf(val);
}
}
/**
* PO/DOC_MOVE
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum ORDER_SN_STATUS {
CREATE(10, "N", "创建"),
RECEIPTED(20, "R", "已完成"),
CANCEL(30, "C", "行取消"),
PRINTED(40, "C", "已打印");
private int value;
private String code;
private String description;
ORDER_SN_STATUS(int value, String code, String description) {
this.value = value;
this.code = code;
this.description = description;
}
public int getValue() {
return value;
}
public String getDescription() {
return description;
}
public String getCode() {
return code;
}
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 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;
}
}
}

@ -62,6 +62,9 @@ public class WmsTaskInfoModel implements Serializable {
@ApiParam(value = "关联单据类型")
public String refType;
@ApiParam(value = "erp单号")
public String erpSrcNo;
public WmsTaskInfoModel() {
}

Loading…
Cancel
Save