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

This commit is contained in:
RuoYi 2022-03-31 11:48:27 +08:00
parent 01a566c794
commit de1766abde
3 changed files with 16 additions and 1 deletions

View File

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

View File

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

View File

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