|
|
|
@ -2764,6 +2764,61 @@ public class WmsEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 库存数量类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum STOCK_QUAN_QTY_TYPE {
|
|
|
|
|
QTY("qty", "可用数量"),
|
|
|
|
|
FAIL_QTY("failQty", "不合格数量"),
|
|
|
|
|
HOLD_QTY("holdQty", "隔离数量"),
|
|
|
|
|
QC_QTY("qcQty", "质检中数量"),
|
|
|
|
|
RIN_QTY("rinQty", "待入库数量"),
|
|
|
|
|
FREEZE_QTY("freezeQty", "冻结数量"),
|
|
|
|
|
CONSIGN_QTY("consignQty", "寄售数量"),
|
|
|
|
|
LOCK_QTY("lockQty", "锁定数量"),
|
|
|
|
|
SCRAP_QTY("scrapQty", "报废数量");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
STOCK_QUAN_QTY_TYPE(String code, String description) {
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getValue() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static STOCK_QUAN_QTY_TYPE codeOf(String code) {
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
return values()[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String getDescription(String code) {
|
|
|
|
|
String tmp = null;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code == code) {
|
|
|
|
|
tmp = values()[i].description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* ERP同步标识 10=待同步,20=同步成功,30=同步失败
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|