cn.woodwhales.common.model.util.PageUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of woodwhales-common Show documentation
Show all versions of woodwhales-common Show documentation
https://github.com/woodwhales
package cn.woodwhales.common.model.util;
import cn.woodwhales.common.model.field.PageQueryInterface;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import java.util.Objects;
/**
* mybatisplus 查询对象构建工具
* @author woodwhales on 2020-08-25
*/
public class PageUtil {
public static IPage buildPage(PageQueryInterface PageQueryInterface) {
Objects.requireNonNull(PageQueryInterface);
IPage page = new Page<>(PageQueryInterface.getPage(), PageQueryInterface.getLimit());
return page;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy