WANG 6 жил өмнө
parent
commit
340fd0c55f

+ 50 - 0
src/main/java/cn/com/qmth/examcloud/api/commons/enums/CourseLevel.java

@@ -0,0 +1,50 @@
+package cn.com.qmth.examcloud.api.commons.enums;
+
+/**
+ * 重新定义
+ *
+ * @author WANGWEI
+ * @date 2018年7月10日
+ * @Copyright (c) 2018-? http://qmth.com.cn All Rights Reserved.
+ */
+public enum CourseLevel {
+
+	ZSB("专升本"),
+
+	GQZ("高起专"),
+
+	GQB("高起本"),
+
+	ALL("不限");
+
+	private String name;
+
+	private CourseLevel(String name) {
+		this.name = name;
+	}
+
+	public String getName() {
+		return this.name;
+	}
+
+	/**
+	 * 混合查询
+	 *
+	 * @author WANGWEI
+	 * @param name
+	 * @return
+	 */
+	public static CourseLevel getCourseLevel(String name) {
+		for (CourseLevel cur : CourseLevel.values()) {
+			if (name.equals(cur.getName())) {
+				return cur;
+			}
+			if (name.equals(cur.name())) {
+				return cur;
+			}
+		}
+
+		throw new RuntimeException("level name is wong");
+	}
+
+}

+ 8 - 0
src/main/java/cn/com/qmth/examcloud/api/commons/enums/Gender.java

@@ -0,0 +1,8 @@
+package cn.com.qmth.examcloud.api.commons.enums;
+
+/**
+ * Created by songyue on 17/2/22.
+ */
+public enum Gender {
+    MAN,WOMAN
+}