于紫祥_1901
2020-10-22 2096fcf9d948dbdcea2aae6f29d508086da9793b
src/main/java/com/moral/common/util/WebUtils.java
@@ -6,8 +6,8 @@
import javax.servlet.ServletRequest;
import org.apache.commons.lang3.StringUtils;
import org.springframework.util.Assert;
import org.springframework.util.ObjectUtils;
public class WebUtils extends org.springframework.web.util.WebUtils {
   public static Map<String, Object> getParametersStartingWith(ServletRequest request, String prefix) {
@@ -29,8 +29,12 @@
               params.put(unprefixed, values);
            }
            else {
               if (StringUtils.isNotBlank(values[0])) {
                  params.put(unprefixed, values[0]);
               if (!ObjectUtils.isEmpty(values[0]) && !"null".equalsIgnoreCase(values[0])) {
                  if ("sorter".equals(unprefixed)) {
                     params.put(unprefixed, values[0].replace("end", ""));
                  } else {
                     params.put(unprefixed, values[0]);
                  }
               }
            }
         }