Commit 57ac68a0 by 裴大威

fix pageBeanNew not null

parent 63a7ca0a
...@@ -63,7 +63,7 @@ public class PageBeanNew<T> implements Serializable { ...@@ -63,7 +63,7 @@ public class PageBeanNew<T> implements Serializable {
this.currentPage = currentPage; this.currentPage = currentPage;
this.numPerPage = numPerPage; this.numPerPage = numPerPage;
this.totalCount = totalCount; this.totalCount = totalCount;
this.recordList = recordList; this.recordList = (null == recordList || recordList.size() <= 0) ? new ArrayList<>() : recordList;
} }
/** /**
...@@ -78,7 +78,7 @@ public class PageBeanNew<T> implements Serializable { ...@@ -78,7 +78,7 @@ public class PageBeanNew<T> implements Serializable {
this.currentPage = currentPage; this.currentPage = currentPage;
this.numPerPage = numPerPage; this.numPerPage = numPerPage;
this.totalCount = totalCount; this.totalCount = totalCount;
this.recordList = recordList; this.recordList = (null == recordList || recordList.size() <= 0) ? new ArrayList<>() : recordList;
this.countResultMap = countResultMap; this.countResultMap = countResultMap;
......
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