Pre Merge pull request !507 from 秋辞未寒/dev_beancp

This commit is contained in:
秋辞未寒 2024-04-02 08:40:27 +00:00 committed by Gitee
commit a92480339b
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();
if (!CollUtil.isEmpty(wfDefinitionConfigVoList)) {
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);
});
}
}