Commit cd7bbdf0 authored by 李丛阳's avatar 李丛阳

page 修复

parent 2f44f923
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<dependency> <dependency>
<groupId>com.github.pagehelper</groupId> <groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId> <artifactId>pagehelper-spring-boot-starter</artifactId>
<version>1.1.1</version> <version>1.2.3</version>
</dependency> </dependency>
<!--datasource--> <!--datasource-->
<dependency> <dependency>
......
...@@ -69,7 +69,7 @@ public class PageUtil<T> extends PageInfo<T> implements Serializable { ...@@ -69,7 +69,7 @@ public class PageUtil<T> extends PageInfo<T> implements Serializable {
@Around("execution(* org.rcisoft..*.service.impl.*ServiceImpl.*ByPagination(..))") @Around("execution(* org.rcisoft..*.service.impl.*ServiceImpl.*ByPagination(..))")
public List<T> preparedPageHeplerAndloadingPageInfoSetResults(ProceedingJoinPoint proceedingJoinPoint) { public List<T> preparedPageHeplerAndloadingPageInfoSetResults(ProceedingJoinPoint proceedingJoinPoint) {
PageUtil paginationUtility = (PageUtil)proceedingJoinPoint.getArgs()[0]; PageUtil paginationUtility = (PageUtil)proceedingJoinPoint.getArgs()[0];
PageHelper.startPage(paginationUtility.getPageNum(), paginationUtility.getPageSize(), true); PageHelper.startPage(paginationUtility.getPageNum(), paginationUtility.getPageSize(), paginationUtility.getOrderBy());
try { try {
List e = (List)proceedingJoinPoint.proceed(); List e = (List)proceedingJoinPoint.proceed();
PageInfo pageInfo = new PageInfo(e); PageInfo pageInfo = new PageInfo(e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment