package cn.huge.module.thirdByRmtj.consts;
|
|
/**
|
* @title: 调解相关常量枚举类
|
* @description: 调解相关常量枚举类
|
* @company: hugeinfo
|
* @author: liyj
|
* @time: 2021-11-05 16:51:48
|
* @version: 1.0.0
|
*/
|
public enum RmtjSourceEnum {
|
|
SOURCE_1("22_00036-1", 1),
|
SOURCE_2("22_00036-2", 2),
|
SOURCE_3("22_00036-3", 3),
|
SOURCE_4("22_00036-4", 4),
|
SOURCE_5("22_00036-5", 5),
|
SOURCE_6("22_00036-6", 6),
|
SOURCE_7("22_00036-7", 7),
|
SOURCE_8("22_00036-8", 8),
|
SOURCE_9("22_00036-9", 9),
|
SOURCE_10("22_00036-10", 10);
|
|
/**
|
* 代码编号
|
*/
|
private String index;
|
|
/**
|
* 描述
|
*/
|
private int code;
|
|
public String getIndex() {
|
return index;
|
}
|
|
public void setIndex(String index) {
|
this.index = index;
|
}
|
|
public int getCode() {
|
return code;
|
}
|
|
public void setCode(int code) {
|
this.code = code;
|
}
|
|
/**
|
* 构造方法
|
* @param index
|
* @param code
|
*/
|
RmtjSourceEnum(String index, int code) {
|
this.index = index;
|
this.code = code;
|
}
|
|
/**
|
* 静态方法
|
* @param index
|
* @return
|
*/
|
public static Integer getCode(String index) {
|
for (RmtjSourceEnum constantEnum : RmtjSourceEnum.values()) {
|
if (constantEnum.getIndex().equals(index)) {
|
return constantEnum.code;
|
}
|
}
|
return 2;
|
}
|
}
|