feat(REQ-4418) - 测试服务端与客户端枚举不一致的问题
This commit is contained in:
parent
1a88a8cb4b
commit
555328129e
@ -52,7 +52,7 @@ public enum AutoApprovalTypeEnum {
|
||||
return UNKNOWN;
|
||||
}
|
||||
return Arrays.stream(values())
|
||||
.filter(e -> e.getType().equalsIgnoreCase(value))
|
||||
.filter(e -> e.getType().equalsIgnoreCase(value) || e.name().equalsIgnoreCase(value))
|
||||
.findFirst()
|
||||
.orElse(UNKNOWN);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user