PublicStrategyDao extends BaseDao { public Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging) throws SQLException { return this.getCount("SELECT count(1) FROM public_strategy t1" + appenWhere(paging)); }  Long insertPublicStrategy(PublicStrategy publicStrategy); int updatePublicStrategy(PublicStrategy publicStrategy); PublicStrategy getPublicStrategyById(Long id); Long getCountByName(String name); Long getCountByIdAndName(Long id, String name); int deletePublicStrategy(PublicStrategy publicStrategy); List<PublicStrategy> getAllPublicStrateges(); Long getPublicStrategyTotalCount(Paging<PublicStrategy> paging); List<PublicStrategyView> findPublicStrategyPageList(Paging<PublicStrategy> paging);  }
@Test public void getPublicStrategyTotalCount() throws Exception { Long count = publicStrategyDao.getPublicStrategyTotalCount(paging); System.out.println("getPublicStrategyTotalCount :-------> " + count); Assert.assertTrue(count > 0); }