1.修改日志分页

This commit is contained in:
zhanghongqing
2018-07-12 18:21:12 +08:00
parent f94e43aa60
commit 207ac10d66
16 changed files with 707 additions and 38 deletions

View File

@@ -46,6 +46,10 @@ public abstract class BaseEntity<T> implements Serializable {
* 当前实体分页对象
*/
protected Page<T> page;
/**
* 日志分页对象
*/
protected PageLog<T> pageLog;
/**
* 自定义SQLSQL标识SQL内容
@@ -110,6 +114,19 @@ public abstract class BaseEntity<T> implements Serializable {
this.page = page;
return page;
}
@JsonIgnore
@XmlTransient
public PageLog<T> getPageLog() {
if (pageLog == null){
pageLog = new PageLog<T>();
}
return pageLog;
}
public PageLog<T> setPageLog(PageLog<T> pageLog) {
this.pageLog = pageLog;
return pageLog;
}
@JsonIgnore
@XmlTransient