Browse Source
Merge in DESIGN/design from ~DESTINY.LIN/design:fix-lag to fix-lag * commit '802d33ef45ab000a02934362c9a7ea350b9108dc': REPORT-113059 编辑数据集,卡顿修复不明显 修复dsName不复用问题 REPORT-113059 编辑数据集,卡顿修复不明显fix-lag
Destiny.Lin-林锦龙
11 months ago
4 changed files with 87 additions and 18 deletions
@ -0,0 +1,37 @@
|
||||
package com.fr.design.worker.data; |
||||
|
||||
import com.fr.base.AbstractTableData; |
||||
import com.fr.design.data.tabledata.wrapper.TemplateTableDataWrapper; |
||||
import com.fr.stable.StringUtils; |
||||
|
||||
/** |
||||
* 数据集的worker结果 |
||||
* |
||||
* @author Destiny.Lin |
||||
* @since 11.0 |
||||
* Created on 2024/1/11 |
||||
*/ |
||||
public class TableDataResult { |
||||
|
||||
private TemplateTableDataWrapper wrapper; |
||||
|
||||
private String name; |
||||
|
||||
public TableDataResult(TemplateTableDataWrapper wrapper) { |
||||
this.wrapper = wrapper; |
||||
// getTableDataInstance中就已经初始化了名字,但是没直接连到wrapper上来,如果直接wrapper.getTableDataName()获取不到
|
||||
// 跟rinoux确认了一下【没直接连到wrapper上来】可能是存在额外考虑
|
||||
// 因此在这里通过额外判断来复用,如果不符合预期就重新再拿一次name吧
|
||||
this.name = wrapper.getTableData() instanceof AbstractTableData ? ((AbstractTableData) wrapper.getTableData()).getDsName() : StringUtils.EMPTY; |
||||
} |
||||
|
||||
|
||||
public TemplateTableDataWrapper getWrapper() { |
||||
return wrapper; |
||||
} |
||||
|
||||
|
||||
public String getName() { |
||||
return name; |
||||
} |
||||
} |
Loading…
Reference in new issue