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

com.zyy.common.util.PageHandle Maven / Gradle / Ivy

package com.zyy.common.util;

import com.zyy.common.vo.PageVo;

/**
 * @author : li.yang
 * @version :
 * date : 2020/4/21 10:24
 */
public class PageHandle {
    public static void setPage(PageVo pageVo) {
        Integer pageSize = pageVo.getPageSize();
        Integer page = pageVo.getCurrentPage();
        pageVo.setStart((long) ((page - 1) * pageSize));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy