Commit 84f8c299 authored by 周健威's avatar 周健威

修改代码

parent c9c964e6
......@@ -29,6 +29,14 @@ public class PageDataVO<T> {
*/
private List<T> data;
public PageDataVO() {
this.totalCount = 0L;
this.totalPage = 0;
this.pageNum = 0;
this.pageSize = 0;
this.data = CollUtil.newArrayList();
}
public static <M> PageDataVO<M> pageInfo(PageInfo<M> pageInfo){
PageDataVO<M> pageDataVo = new PageDataVO<>();
pageDataVo.setData(pageInfo.getList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment