feat(视图): 部分数据源不支持直连分页,使用前端分页
This commit is contained in:
parent
81d7bc0cd5
commit
a4b2ec8250
@ -45,5 +45,5 @@ public class ChartViewDTO extends ChartViewWithBLOBs {
|
||||
private long totalPage;
|
||||
private long totalItems;
|
||||
private int datasetMode;
|
||||
private String datasetType;
|
||||
private String datasourceType;
|
||||
}
|
||||
|
||||
@ -302,7 +302,8 @@ public class ChartViewService {
|
||||
DatasetTable datasetTable = dataSetTableService.get(view.getTableId());
|
||||
if (ObjectUtils.isNotEmpty(datasetTable)) {
|
||||
view.setDatasetMode(datasetTable.getMode());
|
||||
view.setDatasetType(datasetTable.getType());
|
||||
Datasource datasource = datasourceService.get(datasetTable.getDataSourceId());
|
||||
view.setDatasourceType(datasource != null ? datasource.getType() : null);
|
||||
}
|
||||
// 如果是从仪表板获取视图数据,则仪表板的查询模式,查询结果的数量,覆盖视图对应的属性
|
||||
if (CommonConstants.VIEW_RESULT_MODE.CUSTOM.equals(request.getResultMode())) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user