Commit 0614592f authored by yanzg's avatar yanzg

修改日志打印功能,打印更加详细的日志

parent c062a49e
...@@ -36,8 +36,8 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq { ...@@ -36,8 +36,8 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq {
* @param pageSize 每页大小 * @param pageSize 每页大小
*/ */
public PageSizeReqVo(int pageIndex, int pageSize) { public PageSizeReqVo(int pageIndex, int pageSize) {
this.pageIndex = pageIndex; this.setPageIndex(pageIndex);
this.pageSize = pageSize; this.setPageSize(pageSize);
} }
/** /**
...@@ -71,7 +71,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq { ...@@ -71,7 +71,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq {
@Override @Override
public PageSizeReqVo setPageIndex(int pageIndex) { public PageSizeReqVo setPageIndex(int pageIndex) {
this.pageIndex = pageIndex; this.pageIndex = Math.max(0, pageIndex);
return this; return this;
} }
...@@ -82,7 +82,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq { ...@@ -82,7 +82,7 @@ public class PageSizeReqVo extends BaseVo implements PageSizeReq {
@Override @Override
public PageSizeReqVo setPageSize(int pageSize) { public PageSizeReqVo setPageSize(int pageSize) {
this.pageSize = pageSize; this.pageSize = Math.max(0, pageSize);
return this; return this;
} }
} }
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