forked from github/dataease
Merge pull request #10557 from dataease/pr@dev-v2@fix_field_copy
fix(图表): 字段拷贝失效
This commit is contained in:
commit
6595ad30fc
@ -11,7 +11,7 @@ public class FieldUtil {
|
|||||||
public static List<DatasetTableFieldDTO> transFields(List<? extends ChartViewFieldBaseDTO> list) {
|
public static List<DatasetTableFieldDTO> transFields(List<? extends ChartViewFieldBaseDTO> list) {
|
||||||
return list.stream().map(ele -> {
|
return list.stream().map(ele -> {
|
||||||
DatasetTableFieldDTO dto = new DatasetTableFieldDTO();
|
DatasetTableFieldDTO dto = new DatasetTableFieldDTO();
|
||||||
BeanUtils.copyProperties(dto, ele);
|
BeanUtils.copyProperties(ele, dto);
|
||||||
return dto;
|
return dto;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user