疯狂的狮子li
2021-09-02 1a695159e3cd3010381b0dff8b3dcd6f73fa189a
ruoyi-common/src/main/java/com/ruoyi/common/utils/ServletUtils.java
@@ -49,6 +49,20 @@
   }
   /**
     * 获取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() {