资产授权

master
冷调 2024-09-03 22:42:26 +08:00
parent 5dabacaf84
commit 51fdd1f6c1
1 changed files with 4 additions and 4 deletions

View File

@ -245,14 +245,14 @@ public class TableInfoController {
/**
* parentId
* @param parentId id
* @param id id
* @return tableInfo
*/
@PostMapping("/findTableIdByParentId/{parentId}")
@PostMapping("/findTableIdByParentId/{id}")
@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<Long> structureIds = tableInfoService.findTableIdByParentId(parentId);
List<Long> structureIds = tableInfoService.findTableIdByParentId(id);
for (Long structureId : structureIds) {
tableInfoList = tableInfoService.selectById(structureId);
}