public static String getPathWithParams(final URI uri) {
        if (Objects.isNull(uri)) {
            return StringUtils.EMPTY;
        }
        String params = StringUtils.isEmpty(uri.getQuery()) ? "" : "?" + uri.getQuery();
        return uri.getRawPath() + params;
    }
Get the path of uri with parameters.

@param uri the uri.
@return absolute uri string with parameters.
shenyu-common/src/main/java/org/apache/shenyu/common/utils/UriUtils.java