refactor: 接口插件递归加载数据
This commit is contained in:
parent
f69216902c
commit
cd108b14be
|
@ -44,8 +44,13 @@ public abstract class TestElementDTO implements Serializable {
|
|||
/**
|
||||
* 预加载数据
|
||||
*/
|
||||
public void preload() throws Exception {
|
||||
public void preload(List<TestElementDTO> children, BaseConfigDTO config) throws Exception {
|
||||
PluginLogUtils.info("TestElementDTO preload");
|
||||
if (children != null && !children.isEmpty()) {
|
||||
for (TestElementDTO el : children) {
|
||||
el.preload(el.children, config);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue