fix(图表): 修复透视表自定义汇总列总计中的行小计不显示 (#15348)

This commit is contained in:
wisonic-s
2025-03-13 21:21:46 +08:00
committed by GitHub
parent e053682238
commit bb0b2b63eb

View File

@@ -208,8 +208,8 @@ public class TablePivotHandler extends GroupChartHandler {
}
}
// 列总计里面的行小计
if (col.isShowGrandTotals() && row.isShowGrandTotals() && rowAxis.size() >= 2) {
var yAxis = getCustomFields(view, row.getCalcTotals().getCfg());
if (col.isShowGrandTotals() && row.isShowSubTotals() && rowAxis.size() >= 2) {
var yAxis = getCustomFields(view, row.getCalcSubTotals().getCfg());
if (!yAxis.isEmpty()) {
var tmpData = new ArrayList<Map<String, Object>>();
dataMap.put("rowSubInColTotal", tmpData);