sqlExceptSelect += " order by " + sorterField + " " + pageInfo.getSorterDirection();
}
// select = select.substring(0, select.length());
if (pageInfoInterceptor.relations().isEmpty()) {
Model modelInstance = Reflect.on(model).create().get();
return modelInstance.paginate(pageInfo.getPageNumber(), pageInfo.getPageSize(), select, sqlExceptSelect,
paras.toArray(new Object[] {}));
} else {
return Db.paginate(pageInfo.getPageNumber(), pageInfo.getPageSize(), select, sqlExceptSelect,
paras.toArray(new Object[] {}));
}