wcc пре 1 година
родитељ
комит
18caa9d0eb

+ 1 - 4
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/AdsAccountRechargeRankingServiceImpl.java

@@ -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();

+ 2 - 5
game-data/game-data-serve/src/main/java/com/zanxiang/game/data/serve/service/impl/AdsAgentRechargeRankingServiceImpl.java

@@ -67,17 +67,14 @@ public class AdsAgentRechargeRankingServiceImpl implements IAdsAgentRechargeRank
         cri.groupBy("agent_id", "pitcher_id", "type");
         cri.groupBy("agent_id", "pitcher_id", "type");
         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<AdsAgentRechargeRankingVO> entity = dao.getEntity(AdsAgentRechargeRankingVO.class);
         Entity<AdsAgentRechargeRankingVO> entity = dao.getEntity(AdsAgentRechargeRankingVO.class);
         sql.setEntity(entity).setCondition(cri);
         sql.setEntity(entity).setCondition(cri);
         dao.execute(sql);
         dao.execute(sql);
 
 
-
-        //Sql pagerSql = Sqls.queryEntity("select count(*) from ads_agent_recharge_ranking " + "$condition");
-        // pagerSql.setCondition(cri);
-        pager.setRecordCount(((Long) Daos.queryCount(dao, sql)).intValue());
-
         List<AdsAgentRechargeRankingVO> result = sql.getList(AdsAgentRechargeRankingVO.class);
         List<AdsAgentRechargeRankingVO> result = sql.getList(AdsAgentRechargeRankingVO.class);
         int beginIndex = (dto.getPageNum() - 1) * dto.getPageSize();
         int beginIndex = (dto.getPageNum() - 1) * dto.getPageSize();
         int size = result.size();
         int size = result.size();