Skip to content

Commit

Permalink
修复 分页索引错误
Browse files Browse the repository at this point in the history
  • Loading branch information
kkangert committed Jul 27, 2024
1 parent 0a397ae commit 183a26d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class BaseService {
protected Pageable processPage(Map<String, Object> params) {
Integer currentPage = (Integer) params.get("currentPage");
Integer pageSize = (Integer) params.get("pageSize");
return PageRequest.of(currentPage != null ? currentPage - 1 : 1, pageSize != null ? pageSize : 5);
return PageRequest.of(currentPage != null ? currentPage - 1 : 0, pageSize != null ? pageSize : 5);
}

/**
Expand Down

0 comments on commit 183a26d

Please sign in to comment.