zhizhijie
2026-09-11 a76a8cce476ceccbc061a3f51681b6090a7d3741
traffic-audit-server/src/main/java/com/trafficaudit/reportexport/calc/SummaryWorkbookFiller.java
@@ -530,10 +530,9 @@
                String f = prev.getCellFormula();
                if (f == null || f.isEmpty()) continue;
                String shifted = shiftFormulaColumns(f, 2);
                if (target == null) {
                    target = row.createCell(yoyCol);
                if (target == null) target = row.createCell(yoyCol);
                // 母版把新月份的同比列做成了普通数值格式(显示成小数),统一沿用上月同比列的样式(百分数)
                    if (prev.getCellStyle() != null) target.setCellStyle(prev.getCellStyle());
                }
                try {
                    target.setCellFormula(shifted);
                    written++;