|
@@ -83,11 +83,13 @@ public class AdsAccountRechargeRankingServiceImpl implements IAdsAccountRecharge
|
|
|
cri.groupBy("account_id", "pitcher_id", "type", "game_id");
|
|
|
cri.orderBy(CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, dto.getSortFiled()), dto.getSortType());
|
|
|
Sql sql = Sqls.queryEntity(sqlStr + "$condition");
|
|
|
- pager.setRecordCount(((Long) Daos.queryCount(dao, sql)).intValue());
|
|
|
- sql.setPager(pager);
|
|
|
|
|
|
Entity<AdsAccountRechargeRankingVO> entity = dao.getEntity(AdsAccountRechargeRankingVO.class);
|
|
|
sql.setEntity(entity).setCondition(cri);
|
|
|
+ // 查询总数居条数
|
|
|
+ pager.setRecordCount(((Long) Daos.queryCount(dao, sql)).intValue());
|
|
|
+ // 分页查询数据
|
|
|
+ sql.setPager(pager);
|
|
|
dao.execute(sql);
|
|
|
|
|
|
|