mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 09:35:29 +08:00
不返回所有表数据防止数据过多,加载卡顿
Signed-off-by: TikCloud <14345078+tikcloud@user.noreply.gitee.com>
This commit is contained in:
parent
b58085fde1
commit
d723d83095
@ -57,12 +57,12 @@ public class GenController extends BaseController {
|
||||
@GetMapping(value = "/{tableId}")
|
||||
public R<Map<String, Object>> getInfo(@PathVariable Long tableId) {
|
||||
GenTable table = genTableService.selectGenTableById(tableId);
|
||||
List<GenTable> tables = genTableService.selectGenTableAll();
|
||||
// List<GenTable> tables = genTableService.selectGenTableAll();
|
||||
List<GenTableColumn> list = genTableService.selectGenTableColumnListByTableId(tableId);
|
||||
Map<String, Object> map = new HashMap<>(3);
|
||||
map.put("info", table);
|
||||
map.put("rows", list);
|
||||
map.put("tables", tables);
|
||||
// map.put("tables", tables);
|
||||
return R.ok(map);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user