RuoYi
2021-11-10 bcc85750ba319abb0fb6ff8340d8b4b77441caf7
src/main/java/com/ruoyi/common/utils/ServletUtils.java
@@ -49,6 +49,22 @@
    }
    /**
     * 获取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
     */
    public static HttpServletRequest getRequest()