|
|
|
@ -16,17 +16,19 @@ public class SwebEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum ORDER_MASTER_STATUS {
|
|
|
|
|
CREATE(10, "新建"),
|
|
|
|
|
RECEIPT(20, "已发布"),
|
|
|
|
|
SURE(30, "已确认"),
|
|
|
|
|
CLOSED(40, "已打印"),
|
|
|
|
|
DELIVERY(50, "已发货");
|
|
|
|
|
CREATE(10, "CREATE","新建"),
|
|
|
|
|
RECEIPT(20, "RECEIPT","已发布"),
|
|
|
|
|
SURE(30, "SURE","已确认"),
|
|
|
|
|
PRINTED(40, "PRINTED","已打印"),
|
|
|
|
|
DELIVERY(50, "DELIVERY","已发货");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
ORDER_MASTER_STATUS(int value, String description) {
|
|
|
|
|
ORDER_MASTER_STATUS(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -57,6 +59,16 @@ public class SwebEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int codeOf(String code) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -64,17 +76,19 @@ public class SwebEnumUtil {
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum ORDER_DETAILS_STATUS {
|
|
|
|
|
CREATE(10, "新建"),
|
|
|
|
|
RECEIPT(20, "已发布"),
|
|
|
|
|
SURE(30, "已确认"),
|
|
|
|
|
CLOSED(40, "已打印"),
|
|
|
|
|
DELIVERY(50, "已发货");
|
|
|
|
|
CREATE(10, "CREATE","新建"),
|
|
|
|
|
RECEIPT(20, "RECEIPT","已发布"),
|
|
|
|
|
SURE(30, "SURE","已确认"),
|
|
|
|
|
PRINTED(40, "PRINTED","已打印"),
|
|
|
|
|
DELIVERY(50, "DELIVERY","已发货");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
ORDER_DETAILS_STATUS(int value, String description) {
|
|
|
|
|
ORDER_DETAILS_STATUS(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -82,6 +96,10 @@ public class SwebEnumUtil {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
@ -105,6 +123,16 @@ public class SwebEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static int codeOf(String code) {
|
|
|
|
|
int tmp = 1;
|
|
|
|
|
for (int i = 0; i < values().length; i++) {
|
|
|
|
|
if (values()[i].code.equals(code)) {
|
|
|
|
|
tmp = values()[i].value;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return tmp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -146,7 +174,7 @@ public class SwebEnumUtil {
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum ORDER_TYPE {
|
|
|
|
|
STANDARD(10, "标准包装"),
|
|
|
|
|
NON_STANDARD(20, "非标包装");
|
|
|
|
|
NON_STANDARD(20, "非标准包装");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|