!507 update 优化多余的bean转换

Merge pull request !507 from 秋辞未寒/dev_beancp
This commit is contained in:
疯狂的狮子Li 2024-04-02 08:47:53 +00:00 committed by Gitee
commit 8b1e34d800
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -318,7 +318,7 @@ public class WorkflowUtils {
String fieldValue = ReflectUtils.invokeGetter(o, fieldName).toString(); String fieldValue = ReflectUtils.invokeGetter(o, fieldName).toString();
if (!CollUtil.isEmpty(wfDefinitionConfigVoList)) { if (!CollUtil.isEmpty(wfDefinitionConfigVoList)) {
wfDefinitionConfigVoList.stream().filter(e -> e.getDefinitionId().equals(fieldValue)).findFirst().ifPresent(e -> { wfDefinitionConfigVoList.stream().filter(e -> e.getDefinitionId().equals(fieldValue)).findFirst().ifPresent(e -> {
ReflectUtils.invokeSetter(o, WF_DEFINITION_CONFIG_VO, BeanUtil.toBean(e, WfDefinitionConfigVo.class)); ReflectUtils.invokeSetter(o, WF_DEFINITION_CONFIG_VO, e);
}); });
} }
} }