fix:pager.startRow重复计算

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

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

Loading…
Cancel
Save