薪酬系统-人员匹配枚举类
This commit is contained in:
parent
de150e063e
commit
b2ea7ebd29
|
|
@ -9,8 +9,9 @@ import org.apache.commons.lang3.StringUtils;
|
||||||
**/
|
**/
|
||||||
public enum MatchEmployeeModeEnum implements BaseEnum<String> {
|
public enum MatchEmployeeModeEnum implements BaseEnum<String> {
|
||||||
|
|
||||||
NAMEDEPMOBILEMATCH("0", "姓名/部门/手机号匹配", 1),
|
//"0"代表按照姓名+部门+手机号为条件的人员匹配方式,"1"代表按照工号为条件的人员匹配方式
|
||||||
WORKCODEMATCH("1", "工号匹配", 1);
|
NAMEDEPMOBILEMATCH("0", "姓名-部门-手机号", 1),
|
||||||
|
WORKCODEMATCH("1", "工号", 1);
|
||||||
|
|
||||||
private String value;
|
private String value;
|
||||||
|
|
||||||
|
|
@ -41,9 +42,9 @@ public enum MatchEmployeeModeEnum implements BaseEnum<String> {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static MatchEmployeeModeEnum parseByValue(String value) {
|
public static MatchEmployeeModeEnum parseByValue(String value) {
|
||||||
for (MatchEmployeeModeEnum taxDeclarationFunctionEnum : MatchEmployeeModeEnum.values()) {
|
for (MatchEmployeeModeEnum matchEmployeeModeEnum : MatchEmployeeModeEnum.values()) {
|
||||||
if (StringUtils.equals(taxDeclarationFunctionEnum.getValue(), value)) {
|
if (StringUtils.equals(matchEmployeeModeEnum.getValue(), value)) {
|
||||||
return taxDeclarationFunctionEnum;
|
return matchEmployeeModeEnum;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return NAMEDEPMOBILEMATCH;
|
return NAMEDEPMOBILEMATCH;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue