|
|
|
@ -21,6 +21,9 @@ public class PageDomain
|
|
|
|
|
/** 排序的方向desc或者asc */
|
|
|
|
|
private String isAsc = "asc";
|
|
|
|
|
|
|
|
|
|
/** 分页参数合理化 */
|
|
|
|
|
private Boolean reasonable = true;
|
|
|
|
|
|
|
|
|
|
public String getOrderBy()
|
|
|
|
|
{
|
|
|
|
|
if (StringUtils.isEmpty(orderByColumn))
|
|
|
|
@ -81,4 +84,18 @@ public class PageDomain
|
|
|
|
|
this.isAsc = isAsc;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Boolean getReasonable()
|
|
|
|
|
{
|
|
|
|
|
if (StringUtils.isNull(reasonable))
|
|
|
|
|
{
|
|
|
|
|
return Boolean.TRUE;
|
|
|
|
|
}
|
|
|
|
|
return reasonable;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public void setReasonable(Boolean reasonable)
|
|
|
|
|
{
|
|
|
|
|
this.reasonable = reasonable;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|