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