|
|
@@ -0,0 +1,44 @@
|
|
|
+package com.railway.business.catenary.enums;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 排序字段名
|
|
|
+ *
|
|
|
+ * @author railway
|
|
|
+ */
|
|
|
+public enum JcebOrderEnum {
|
|
|
+ /** 排序字段名 */
|
|
|
+ CHECK_DATE("checkDate", "check_date", "检查日期"),
|
|
|
+ OPERATION_DATE("operationDate", "operation_date", "操作日期"),
|
|
|
+ ;
|
|
|
+
|
|
|
+ private final String attribute;
|
|
|
+ private final String field;
|
|
|
+ private final String notes;
|
|
|
+
|
|
|
+ JcebOrderEnum(String attribute, String field, String notes) {
|
|
|
+ this.attribute = attribute;
|
|
|
+ this.field = field;
|
|
|
+ this.notes = notes;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getAttribute() {
|
|
|
+ return attribute;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getField() {
|
|
|
+ return field;
|
|
|
+ }
|
|
|
+
|
|
|
+ public String getNotes() {
|
|
|
+ return notes;
|
|
|
+ }
|
|
|
+
|
|
|
+ public static JcebOrderEnum ofValue(String attribute) {
|
|
|
+ for (JcebOrderEnum investor : JcebOrderEnum.values()) {
|
|
|
+ if (investor.getAttribute().equals(attribute)) {
|
|
|
+ return investor;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+}
|