Commit 9041d167 authored by 赵啸非's avatar 赵啸非

添加首页统计模块

parent cc2e6a99
......@@ -25,9 +25,12 @@ public class PhQueueStatDaoImpl extends BaseCRUDDaoMybatis<PhQueueStatEntity, Lo
@Override
public List<PhQueueStatEntity> getStatList(PhQueueStatQuery query, PageInfo pageInfo) {
ParamDto queryParam = super.getQueryParam(query);
List<PhQueueStatEntity> 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);
}
......
......@@ -24,8 +24,10 @@ public class PjEvaluateStatDaoImpl extends BaseCRUDDaoMybatis<PjEvaluateStatEnti
@Override
public List<PjEvaluateStatEntity> getStatList(PjEvaluateStatQuery query, PageInfo pageInfo) {
ParamDto queryParam = super.getQueryParam(query);
List<PjEvaluateStatEntity> 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);
......
......@@ -2,6 +2,19 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"mybatis-3-mapper.dtd">
<mapper namespace="com.mortals.xhx.module.ph.dao.ibatis.PhQueueStatDaoImpl">
<select id="getStatListCount" parameterType="paramDto" resultType="int">
select count(1)
from mortals_xhx_ph_queue_stat as a
<trim suffixOverrides="where" suffix="">
where
<trim prefixOverrides="and" prefix="">
<include refid="_condition_"/>
</trim>
</trim>
</select>
<!-- 获取统计列表 -->
<select id="getStatList" parameterType="paramDto" resultMap="PhQueueStatEntity-Map">
select
......
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