Commit 2f44f923 authored by 李丛阳's avatar 李丛阳

分页

parent ddeeb150
...@@ -69,8 +69,7 @@ public class PageUtil<T> extends PageInfo<T> implements Serializable { ...@@ -69,8 +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(), Boolean.parseBoolean(paginationUtility.getOrderBy())); PageHelper.startPage(paginationUtility.getPageNum(), paginationUtility.getPageSize(), true);
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