Commit b83cdb36 authored by 赵啸非's avatar 赵啸非

添加首页统计模块

parent 9041d167
......@@ -26,8 +26,10 @@ public class StatDaoImpl extends BaseCRUDDaoMybatis<StatEntity,Long> implements
@Override
public List<StatEntity> getStatList(StatQuery query, PageInfo pageInfo) {
ParamDto queryParam = super.getQueryParam(query);
List<StatEntity> list = getSqlSession().selectList(SQLID_GET_STATLIST, queryParam);
pageInfo.setTotalResult(list.size());
if (pageInfo.getPrePageResult() == -1) {
return getSqlSession().selectList(SQLID_GET_STATLIST, queryParam);
return list;
} else {
RowBounds rowBounds = new RowBounds(pageInfo.getBeginIndex(), pageInfo.getPrePageResult());
return getSqlSession().selectList(SQLID_GET_STATLIST, queryParam, rowBounds);
......
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