分页数据新增分页参数合理化参数

This commit is contained in:
RuoYi
2022-01-07 12:28:08 +08:00
parent 36f428d928
commit 008a461968
5 changed files with 65 additions and 26 deletions

View File

@ -53,6 +53,22 @@ public class ServletUtils
return Convert.toInt(getRequest().getParameter(name), defaultValue);
}
/**
* 获取Boolean参数
*/
public static Boolean getParameterToBool(String name)
{
return Convert.toBool(getRequest().getParameter(name));
}
/**
* 获取Boolean参数
*/
public static Boolean getParameterToBool(String name, Boolean defaultValue)
{
return Convert.toBool(getRequest().getParameter(name), defaultValue);
}
/**
* 获取request
*/