ServerConfigDao extends BaseDao { public Long getServerAppConfigTotalCount(Paging<ServerConfig> paging) throws SQLException { return this.getCount("SELECT count(1) FROM server_config " + this.appenCondition(paging)); }  Long insertServerAppConfig(ServerConfig serverAppConfig); int deleteServerAppConfig(ServerConfig serverAppConfig); int updateServerAppConfig(ServerConfig serverAppConfig); int deleteServerConfigByServerGroupId(Long serverId); List<ServerConfig> getServerAppConfigByServerId(Long serverId); Long getServerAppConfigTotalCount(Paging<ServerConfig> paging); List<ServerConfig> findServerAppConfigPageList(Paging<ServerConfig> paging);  }
@Test public void getServerAppConfigTotalCount() throws Exception { Long count = serverConfigDao.getServerAppConfigTotalCount(paging); System.out.println("getServerAppConfigTotalCount :-------> " + count); Assert.assertTrue(count > 0); }