|
|
|
@ -177,6 +177,44 @@ public class MesExtEnumUtil {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 发运单类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|
shape = JsonFormat.Shape.OBJECT
|
|
|
|
|
)
|
|
|
|
|
public static enum SHIPPING_ORDER_TYPE {
|
|
|
|
|
SORT_SHIPPING(10, "排序发运");
|
|
|
|
|
|
|
|
|
|
private int value;
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
|
|
private SHIPPING_ORDER_TYPE(int value, String description) {
|
|
|
|
|
this.value = value;
|
|
|
|
|
this.description = description;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static String valueOfDescription(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 int getValue() {
|
|
|
|
|
return this.value;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
|
return this.description;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 设备类型
|
|
|
|
|
*/
|
|
|
|
|
@JsonFormat(
|
|
|
|
|