| 12345678910111213141516171819 |
- package com.poyee.utils;
- import cn.hutool.core.bean.BeanUtil;
- import com.github.pagehelper.PageInfo;
- import java.util.List;
- /**
- * @author huang_run
- * @date 2026/3/23 10:08
- */
- public class PageUtil {
- public static <T, R> PageInfo<R> convertPage(PageInfo<T> source, List<R> list) {
- PageInfo<R> target = new PageInfo<>();
- BeanUtil.copyProperties(source, target, "list");
- target.setList(list);
- return target;
- }
- }
|