新增清理分页的线程变量方法

master
RuoYi 3 years ago
parent 01a566c794
commit de1766abde
  1. 8
      ruoyi-common/src/main/java/com/ruoyi/common/core/controller/BaseController.java
  2. 8
      ruoyi-common/src/main/java/com/ruoyi/common/utils/PageUtils.java
  3. 1
      ruoyi-framework/src/main/java/com/ruoyi/framework/aspectj/LogAspect.java

@ -68,6 +68,14 @@ public class BaseController
}
}
/**
* 清理分页的线程变量
*/
protected void clearPage()
{
PageUtils.clearPage();
}
/**
* 响应请求分页数据
*/

@ -27,4 +27,12 @@ public class PageUtils extends PageHelper
PageHelper.startPage(pageNum, pageSize, orderBy).setReasonable(reasonable);
}
}
/**
* 清理分页的线程变量
*/
public static void clearPage()
{
PageHelper.clearPage();
}
}

@ -65,7 +65,6 @@ public class LogAspect
{
try
{
// 获取当前的用户
LoginUser loginUser = SecurityUtils.getLoginUser();

Loading…
Cancel
Save