update 优化多余的bean转换

This commit is contained in:
Liang 2024-04-02 14:18:46 +08:00
parent 089b089fce
commit e548a05cf0

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