File tree 1 file changed +4
-4
lines changed
springboot-starter/src/main/java/com/codingapi/springboot/framework/dto/request
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ public class PageRequest extends org.springframework.data.domain.PageRequest {
24
24
private org .springframework .data .domain .PageRequest pageRequest ;
25
25
26
26
public PageRequest (int current , int pageSize , Sort sort ) {
27
- super (current > 0 ? current -- : 0 , pageSize , sort );
27
+ super (current , pageSize , sort );
28
28
this .current = current ;
29
29
this .pageSize = pageSize ;
30
30
this .pageRequest = org .springframework .data .domain .PageRequest .of (current , pageSize , sort );
@@ -99,17 +99,17 @@ public Sort getSort() {
99
99
}
100
100
101
101
@ Override
102
- public org . springframework . data . domain . PageRequest next () {
102
+ public PageRequest next () {
103
103
return new PageRequest (current + 1 , getPageSize (), getSort ());
104
104
}
105
105
106
106
@ Override
107
- public org . springframework . data . domain . PageRequest previous () {
107
+ public PageRequest previous () {
108
108
return current == 0 ? this : new PageRequest (current - 1 , getPageSize (), getSort ());
109
109
}
110
110
111
111
@ Override
112
- public org . springframework . data . domain . PageRequest first () {
112
+ public PageRequest first () {
113
113
return new PageRequest (0 , getPageSize (), getSort ());
114
114
}
115
115
You can’t perform that action at this time.
0 commit comments