feat(REQ-4418) - 测试服务端与客户端枚举不一致的问题

This commit is contained in:
wangli 2025-08-29 18:16:30 +08:00
parent 1a88a8cb4b
commit 555328129e

View File

@ -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);
}