All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xyz.erupt.core.view.TableQueryVo Maven / Gradle / Ivy

There is a newer version: 1.12.17
Show newest version
package xyz.erupt.core.view;

import lombok.Getter;
import lombok.Setter;
import xyz.erupt.annotation.query.Condition;

import java.util.List;

@Getter
@Setter
public class TableQueryVo {

    private static final int maxPageSize = 1000;

    private boolean dataExport = false;

    private Integer pageIndex;

    private Integer pageSize;

    private String sort;

    private Object linkTreeVal;

    private List condition;

    public Integer getPageSize() {
        if (this.isDataExport()) {
            pageSize = Page.PAGE_MAX_DATA;
        } else {
            if (pageSize > maxPageSize) {
                pageSize = maxPageSize;
            }
        }
        return pageSize;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy