枚举类聚合转码

/*for (GdtProject gdtProject : gdtProjectLikelist.getRecords()) {
Optional<String> first = Arrays.stream(ProjectTypEnum.values()).filter(e -> e.getKey().equals(gdtProject.getTypeId())).map(ProjectTypEnum::getValue).findFirst();
gdtProject.setTypeId(first.get());
}*/
posted @ 2024-11-14 23:02  狗艳艳花  阅读(1)  评论(0编辑  收藏  举报