后台资产展示代码

master
冷调 2024-08-27 15:27:30 +08:00
parent 1230764550
commit f929327752
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ public class TableDataController extends BaseController {
@Operation(summary = "根据表名查询表结构", description = "根据表名查询表结构")
public Result findByTableName(){
List<Children> childrenList = childrenService.list();
List<TableInfoResp> list = childrenList.stream().filter(children -> children.getAssetId() == 0).map(children -> {
TableInfoResp tableInfoResp = Children.toTableInfoResp(children);
tableInfoResp.setChildren(getChildren(children, childrenList));