Explorar o código

优化空闲错误问题

java110 %!s(int64=5) %!d(string=hai) anos
pai
achega
d858e6ca47

+ 2 - 3
service-front/src/main/java/com/java110/front/smo/assetExport/impl/ExportFeeManualCollectionSMOImpl.java

@@ -188,7 +188,7 @@ public class ExportFeeManualCollectionSMOImpl extends BaseComponentSMO implement
         double freePageHeight = A4_lengthways_pageSize - curPageHeight;
         double freePageHeight = A4_lengthways_pageSize - curPageHeight;
         if (freePageHeight < totalHeight && curPageHeight != 0) {
         if (freePageHeight < totalHeight && curPageHeight != 0) {
             line += Math.ceil(freePageHeight / defaultRowHeight);
             line += Math.ceil(freePageHeight / defaultRowHeight);
-            totalPageHeight += Math.ceil(freePageHeight / defaultRowHeight);
+            totalPageHeight += freePageHeight;
         }
         }
 
 
         totalPageHeight += totalHeight;
         totalPageHeight += totalHeight;
@@ -214,7 +214,7 @@ public class ExportFeeManualCollectionSMOImpl extends BaseComponentSMO implement
         // 标题
         // 标题
         Row row = sheet.createRow(0 + line);
         Row row = sheet.createRow(0 + line);
         Cell cell0 = row.createCell(0);
         Cell cell0 = row.createCell(0);
-        cell0.setCellValue("缴费通知单totalHeight:"+totalHeight+"-totalPageHeight:"+totalPageHeight+"-curPageHeight:"+curPageHeight+"-freePageHeight:"+freePageHeight+"-line:"+line);
+        cell0.setCellValue("缴费通知单totalHeight:" + totalHeight + "-totalPageHeight:" + totalPageHeight + "-curPageHeight:" + curPageHeight + "-freePageHeight:" + freePageHeight + "-line:" + line);
         //标题设置字体
         //标题设置字体
         Font font = workbook.createFont();
         Font font = workbook.createFont();
         font.setFontName("黑体");
         font.setFontName("黑体");
@@ -252,7 +252,6 @@ public class ExportFeeManualCollectionSMOImpl extends BaseComponentSMO implement
         row.setHeight((short) (titleHeight));
         row.setHeight((short) (titleHeight));
 
 
 
 
-
         row = sheet.createRow(2 + line);
         row = sheet.createRow(2 + line);
         cell0 = row.createCell(0);
         cell0 = row.createCell(0);
         cell0.setCellValue("收费名称");
         cell0.setCellValue("收费名称");