forked from github/dataease
Merge pull request #9360 from dataease/pr@dev-v2@fix_table_info
fix(图表): 修复明细表分页报错的问题
This commit is contained in:
commit
eeadf1a705
@ -530,7 +530,7 @@ public class ChartDataManage {
|
||||
String originSql = SQLProvider.createQuerySQL(sqlMeta, false, true, view);// 明细表强制加排序
|
||||
String limit = ((pageInfo.getGoPage() != null && pageInfo.getPageSize() != null) ? " LIMIT " + pageInfo.getPageSize() + " OFFSET " + (pageInfo.getGoPage() - 1) * pageInfo.getPageSize() : "");
|
||||
querySql = originSql + limit;
|
||||
totalPageSql = "SELECT COUNT(*) FROM (" + originSql + ") COUNT_TEMP";
|
||||
totalPageSql = "SELECT COUNT(*) FROM (" + SQLProvider.createQuerySQL(sqlMeta, false, false, view) + ") COUNT_TEMP";
|
||||
} else if (StringUtils.containsIgnoreCase(view.getType(), "quadrant")) {
|
||||
Dimension2SQLObj.dimension2sqlObj(sqlMeta, xAxis, transFields(allFields), crossDs, dsMap);
|
||||
yAxis.addAll(extBubble);
|
||||
|
Loading…
Reference in New Issue
Block a user