|
@@ -83,6 +83,7 @@ public class AdsAccountRechargeRankingServiceImpl implements IAdsAccountRecharge
|
|
cri.groupBy("account_id", "pitcher_id", "type", "game_id");
|
|
cri.groupBy("account_id", "pitcher_id", "type", "game_id");
|
|
cri.orderBy(CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, dto.getSortFiled()), dto.getSortType());
|
|
cri.orderBy(CaseFormat.LOWER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, dto.getSortFiled()), dto.getSortType());
|
|
Sql sql = Sqls.queryEntity(sqlStr + "$condition");
|
|
Sql sql = Sqls.queryEntity(sqlStr + "$condition");
|
|
|
|
+ pager.setRecordCount(((Long) Daos.queryCount(dao, sql)).intValue());
|
|
sql.setPager(pager);
|
|
sql.setPager(pager);
|
|
|
|
|
|
Entity<AdsAccountRechargeRankingVO> entity = dao.getEntity(AdsAccountRechargeRankingVO.class);
|
|
Entity<AdsAccountRechargeRankingVO> entity = dao.getEntity(AdsAccountRechargeRankingVO.class);
|
|
@@ -90,10 +91,6 @@ public class AdsAccountRechargeRankingServiceImpl implements IAdsAccountRecharge
|
|
dao.execute(sql);
|
|
dao.execute(sql);
|
|
|
|
|
|
|
|
|
|
- // Sql pagerSql = Sqls.queryEntity("select count(*) from ads_account_recharge_ranking " + "$condition");
|
|
|
|
- // pagerSql.setCondition(cri);
|
|
|
|
- pager.setRecordCount(((Long) Daos.queryCount(dao, sql)).intValue());
|
|
|
|
-
|
|
|
|
List<AdsAccountRechargeRankingVO> result = sql.getList(AdsAccountRechargeRankingVO.class);
|
|
List<AdsAccountRechargeRankingVO> result = sql.getList(AdsAccountRechargeRankingVO.class);
|
|
int beginIndex = (dto.getPageNum() - 1) * dto.getPageSize();
|
|
int beginIndex = (dto.getPageNum() - 1) * dto.getPageSize();
|
|
int size = result.size();
|
|
int size = result.size();
|