mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-07-03 21:08:58 +08:00
fix: 给分页查询参数设置默认值
This commit is contained in:
parent
0d5efb4af7
commit
c355fcac04
@ -153,8 +153,9 @@ public class BaseForm<T> {
|
||||
*/
|
||||
public Page getPlusPagingQueryEntity() {
|
||||
Page page = new Page();
|
||||
page.setCurrent(Long.valueOf(StrUtil.toString(this.get("current"))));
|
||||
page.setSize(Long.valueOf(StrUtil.toString(this.getString("size"))));
|
||||
//如果无current,默认返回1000条数据
|
||||
page.setCurrent(Long.valueOf(StrUtil.toString(ObjectUtil.defaultIfNull(this.get("current"), "0"))));
|
||||
page.setSize(Long.valueOf(StrUtil.toString(ObjectUtil.defaultIfNull(this.get("size"), "1000"))));
|
||||
if (ObjectUtil.isNotNull(this.get("ifCount"))) {
|
||||
page.setSearchCount(BooleanUtil.toBoolean(this.getString("ifCount")));
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user