API数据表更新
This commit is contained in:
@@ -34,7 +34,9 @@ public class dataPageController {
|
|||||||
public List<SyncTablesView> getTableList(String dbId, String targetTable) {
|
public List<SyncTablesView> getTableList(String dbId, String targetTable) {
|
||||||
QueryWrapper<SyncTablesView> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<SyncTablesView> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq(dbId != null && !dbId.isBlank(), "db_id", dbId)
|
queryWrapper.eq(dbId != null && !dbId.isBlank(), "db_id", dbId)
|
||||||
.like(targetTable != null && !targetTable.isBlank(), "target_table", targetTable);
|
.like(targetTable != null && !targetTable.isBlank(), "target_table", targetTable)
|
||||||
|
.orderByDesc("create_time")
|
||||||
|
;
|
||||||
return tablesViewService.list(queryWrapper);
|
return tablesViewService.list(queryWrapper);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user