不返回所有表数据防止数据过多,加载卡顿

Signed-off-by: TikCloud <14345078+tikcloud@user.noreply.gitee.com>
This commit is contained in:
TikCloud 2025-11-13 04:00:24 +00:00 committed by Gitee
parent b58085fde1
commit d723d83095
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -57,12 +57,12 @@ public class GenController extends BaseController {
@GetMapping(value = "/{tableId}") @GetMapping(value = "/{tableId}")
public R<Map<String, Object>> getInfo(@PathVariable Long tableId) { public R<Map<String, Object>> getInfo(@PathVariable Long tableId) {
GenTable table = genTableService.selectGenTableById(tableId); GenTable table = genTableService.selectGenTableById(tableId);
List<GenTable> tables = genTableService.selectGenTableAll(); // List<GenTable> tables = genTableService.selectGenTableAll();
List<GenTableColumn> list = genTableService.selectGenTableColumnListByTableId(tableId); List<GenTableColumn> list = genTableService.selectGenTableColumnListByTableId(tableId);
Map<String, Object> map = new HashMap<>(3); Map<String, Object> map = new HashMap<>(3);
map.put("info", table); map.put("info", table);
map.put("rows", list); map.put("rows", list);
map.put("tables", tables); // map.put("tables", tables);
return R.ok(map); return R.ok(map);
} }