| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.xjrsoft.common.enums;
- import java.util.HashMap;
- import java.util.Map;
- /**
- * @description: 学籍形式learn_status
- * @author: dzx
- * @create: 2025年2月28日
- * @Version 1.0
- */
- public enum RollModalityEnum {
- borrowing("borrowing", "在校无本班学籍"),
- normal("normal", "在校本班学籍"),
- practice("practice", "外出实习本班学籍"),
- practiceno("practiceno", "外出实习无本班学籍");
- final String code;
- final String value;
- private static final Map<String, String> lookup = new HashMap<>();
- static {
- for (RollModalityEnum s : RollModalityEnum.values()) {
- lookup.put(s.getCode(), s.getValue());
- }
- }
- public String getCode() {
- return this.code;
- }
- public String getValue() {
- return this.value;
- }
- RollModalityEnum(final String code, final String message) {
- this.code = code;
- this.value = message;
- }
- public static String fromCode(String code) {
- return lookup.get(code);
- }
- }
|