Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

启用分页发布以后,GET请求数据的currentPage一直是0 #32

Closed
51522tt opened this issue May 8, 2020 · 1 comment
Closed

Comments

@51522tt
Copy link

51522tt commented May 8, 2020

在DataWay里面测试时,可以根据传入的page 参数正常分页查询和处理逻辑,但是发布以后,不管page是多少数字,都不会改变currentPage,currentPage会一直为0
image
image

@zycgit
Copy link
Collaborator

zycgit commented May 9, 2020

使用的是 GET 方法,get 方法参数获取采用的是 httpRequest.getParameterValues 拿到的就是 Sring 类型。

但是 Edit 页面中,参数的递交采用的是 POST, 请求参数中可以明确的表示是一个 number 类型。

这个办法建议将 4.1.5 中的 conver 函数库代码拷贝到你的工程中单独使用。

用法就是将 请求参数 用函数转换 成 int 类型。

conver 函数库的地址在这里:https://github.com/zycgit/hasor/blob/dev/hasor-dataql/dataql-fx/src/main/java/net/hasor/dataql/fx/basic/ConvertUdfSource.java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants