资产授权
parent
5dabacaf84
commit
51fdd1f6c1
|
@ -245,14 +245,14 @@ public class TableInfoController {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 根据parentId向下查询出子表
|
* 根据parentId向下查询出子表
|
||||||
* @param parentId 父id
|
* @param id id
|
||||||
* @return 返回tableInfo列表
|
* @return 返回tableInfo列表
|
||||||
*/
|
*/
|
||||||
@PostMapping("/findTableIdByParentId/{parentId}")
|
@PostMapping("/findTableIdByParentId/{id}")
|
||||||
@Operation(summary = "根据parentId向下查询出子表" , description = "根据parentId向下查询出子表")
|
@Operation(summary = "根据parentId向下查询出子表" , description = "根据parentId向下查询出子表")
|
||||||
public Result<List<TableInfo>> findTableIdByParentId(@PathVariable("parentId") Long parentId) {
|
public Result<List<TableInfo>> findTableIdByParentId(@PathVariable("id") Long id) {
|
||||||
List<TableInfo> tableInfoList = null;
|
List<TableInfo> tableInfoList = null;
|
||||||
List<Long> structureIds = tableInfoService.findTableIdByParentId(parentId);
|
List<Long> structureIds = tableInfoService.findTableIdByParentId(id);
|
||||||
for (Long structureId : structureIds) {
|
for (Long structureId : structureIds) {
|
||||||
tableInfoList = tableInfoService.selectById(structureId);
|
tableInfoList = tableInfoService.selectById(structureId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue