Merge pull request #9360 from dataease/pr@dev-v2@fix_table_info

fix(图表): 修复明细表分页报错的问题
This commit is contained in:
Junjun 2024-04-26 10:36:42 +08:00 committed by GitHub
commit eeadf1a705
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);