Sfoglia il codice sorgente

修复在配置分页方式为固定行数时同时设置重复表尾时最终输出每页行数不正确的BUG

master
youseries 6 anni fa
parent
commit
b0b00be56a
  1. 2
      ureport2-core/src/main/java/com/bstek/ureport/build/ReportBuilder.java
  2. 2
      ureport2-core/src/main/java/com/bstek/ureport/build/paging/FixRowsPagination.java

2
ureport2-core/src/main/java/com/bstek/ureport/build/ReportBuilder.java

@ -433,7 +433,7 @@ public class ReportBuilder extends BasePagination implements ApplicationContextA
}
row.setPageIndex(pageIndex);
pageRows.add(row);
if((pageRows.size()+footerRows.size()) >= fixRows){
if(pageRows.size() >= fixRows){
Page newPage=buildPage(pageRows,pageRepeatHeaders,pageRepeatFooters,titleRows,pageIndex,report);
pageIndex++;
pages.add(newPage);

2
ureport2-core/src/main/java/com/bstek/ureport/build/paging/FixRowsPagination.java

@ -81,7 +81,7 @@ public class FixRowsPagination extends BasePagination implements Pagination {
}
pageRows.add(row);
row.setPageIndex(pageIndex);
if((pageRows.size()+footerRows.size()) >= fixRows){
if(pageRows.size() >= fixRows){
Page newPage=buildPage(pageRows,pageRepeatHeaders,pageRepeatFooters,titleRows,pageIndex,report);
pageIndex++;
pages.add(newPage);

Caricamento…
Annulla
Salva