组件中单据类型枚举新增

yun-zuoyi
jessica.chen 7 years ago
parent 83de8099bc
commit e67151271b

@ -1472,4 +1472,39 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum RC_ORDER_TYPE {
PO(10, "PO"),
ASN(20, "ASN");
private int value;
private String description;
RC_ORDER_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