增加枚举

yun-zuoyi
jimmy 7 years ago
parent e1c02277b3
commit 76af709841

@ -1610,4 +1610,43 @@ public class WmsEnumUtil {
return tmp;
}
}
/**
*
*/
@JsonFormat(shape = JsonFormat.Shape.OBJECT)
public enum COMPONENT_TYPE {
PROCESS_HANDLING(10, "流程处理组件,"),
PROCESS_INITIALIZATION(20, "流程初始化组件"),
PROCESS_END(30, "流程结束组件"),
DETAIL_PROCESS(40, "明细处理组件"),
BACK_DISPLAY(50, "回显示组件");
private int value;
private String description;
COMPONENT_TYPE(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