yun-zuoyi
柯裕 7 years ago
parent dec260e3ca
commit c87c038410

@ -751,4 +751,38 @@ public class WmsEnumUtil {
return tmp; return tmp;
} }
} }
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum TASK_INFO_STATUS {
CREATE(10, "创建"), FINISH(20, "待处理"), FAIL(30, "已处理");
private int value;
private String description;
TASK_INFO_STATUS(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