|
|
|
@ -107,4 +107,36 @@ public class SwebEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 包装类型枚举
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
|
|
|
|
|
public enum PACKAGE_TYPE {
|
|
|
|
|
BOX(10, "BOX", "BOX(盒)"),
|
|
|
|
|
CARTON(20, "CARTON", "CARTON(箱)"),
|
|
|
|
|
PALLET(30, "PALLET", "PALLET(栈板)"),
|
|
|
|
|
CONTAINER(40, "PALLET", "PALLET(集装箱)");
|
|
|
|
|
|
|
|
|
|
private String code;
|
|
|
|
|
private String description;
|
|
|
|
|
int value;
|
|
|
|
|
|
|
|
|
|
PACKAGE_TYPE(int value, String code, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.code = code;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public int getValue() {
|
|
|
|
|
return value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getCode() {
|
|
|
|
|
return code;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|