fix:pager.startRow重复计算

yun-zuoyi
汪云昊 5 years ago
parent 7e678e747d
commit 4dc40c79dd

@ -137,10 +137,10 @@ public class Pager {
public int getStartRow() { public int getStartRow() {
if(pageSize > 0){ if(pageSize > 0){
if(currentPage >= 1){ if (currentPage >= 1) {
return currentPage * pageSize - pageSize; startRow = currentPage * pageSize - pageSize;
}else { } else {
return 0; startRow = 0;
} }
} }
return startRow; return startRow;

Loading…
Cancel
Save