Browse Source

更新列位置的处理逻辑,修复问题

CodeLife_leno 2 months ago
parent
commit
336ad3eb0e

+ 1 - 1
Procedure/backend/project/src/main/java/com/sundata/product/rwa/calc/service/ReportCalcService.java

@@ -128,7 +128,7 @@ public class ReportCalcService {
                                 Row mainTmpRow = mainTmpSheet.createRow(j);
                                 for (int k = tempRow.getFirstCellNum(); k < tempRow.getLastCellNum(); k++) {
                                     int finalK = k;
-                                    List<ReportCalculationModel> thisCellNumModel = thisSheetNumModel.stream().filter(e -> finalK == (e.getReportUnitCell())).toList();
+                                    List<ReportCalculationModel> thisCellNumModel = thisRowNumModel.stream().filter(e -> finalK == (e.getReportUnitCell())).toList();
                                     Cell tempCell = tempRow.getCell(k);
                                     Cell mainTmpCell = null;
                                     if (tempCell != null) {