Merge pull request #10557 from dataease/pr@dev-v2@fix_field_copy

fix(图表): 字段拷贝失效
This commit is contained in:
wisonic-s 2024-06-27 12:39:20 +08:00 committed by GitHub
commit 6595ad30fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -11,7 +11,7 @@ public class FieldUtil {
public static List<DatasetTableFieldDTO> transFields(List<? extends ChartViewFieldBaseDTO> list) {
return list.stream().map(ele -> {
DatasetTableFieldDTO dto = new DatasetTableFieldDTO();
BeanUtils.copyProperties(dto, ele);
BeanUtils.copyProperties(ele, dto);
return dto;
}).collect(Collectors.toList());
}