后台资产展示代码
parent
1230764550
commit
f929327752
|
@ -179,6 +179,7 @@ public class TableDataController extends BaseController {
|
||||||
@Operation(summary = "根据表名查询表结构", description = "根据表名查询表结构")
|
@Operation(summary = "根据表名查询表结构", description = "根据表名查询表结构")
|
||||||
public Result findByTableName(){
|
public Result findByTableName(){
|
||||||
List<Children> childrenList = childrenService.list();
|
List<Children> childrenList = childrenService.list();
|
||||||
|
|
||||||
List<TableInfoResp> list = childrenList.stream().filter(children -> children.getAssetId() == 0).map(children -> {
|
List<TableInfoResp> list = childrenList.stream().filter(children -> children.getAssetId() == 0).map(children -> {
|
||||||
TableInfoResp tableInfoResp = Children.toTableInfoResp(children);
|
TableInfoResp tableInfoResp = Children.toTableInfoResp(children);
|
||||||
tableInfoResp.setChildren(getChildren(children, childrenList));
|
tableInfoResp.setChildren(getChildren(children, childrenList));
|
||||||
|
|
Loading…
Reference in New Issue