提交 230ace19 authored 作者: cherishsince's avatar cherishsince

- 优化:pageResult 和 mybatis 返回的 total 保持一致(改为long型)

上级 7fcf9546
......@@ -13,7 +13,7 @@ public final class PageResult<T> implements Serializable {
private List<T> list;
@ApiModelProperty(value = "总量", required = true)
private Integer total;
private Long total;
public List<T> getList() {
return list;
......@@ -24,11 +24,11 @@ public final class PageResult<T> implements Serializable {
return this;
}
public Integer getTotal() {
public Long getTotal() {
return total;
}
public PageResult<T> setTotal(Integer total) {
public PageResult<T> setTotal(Long total) {
this.total = total;
return this;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论