@Test public void getTotalCount() throws Exception { Long cont = dataBaseDao.getTotalCount(paging); System.out.println("getTotalCount :-------> " + cont); Assert.assertTrue(cont > 0); }
public Long getTotalCount(Paging<DataBaseInfo> paging) throws SQLException { String sql = "SELECT count(1) FROM alldbs a LEFT JOIN dal_group b ON b.id = a.dal_group_id " + appenWhere(paging); log.info("getTotalCount--->" + sql); return this.getCount(sql); }
DataBaseDao extends BaseDao { public Long getTotalCount(Paging<DataBaseInfo> paging) throws SQLException { String sql = "SELECT count(1) FROM alldbs a LEFT JOIN dal_group b ON b.id = a.dal_group_id " + appenWhere(paging); log.info("getTotalCount--->" + sql); return this.getCount(sql); } }
DataBaseDao extends BaseDao { public Long getTotalCount(Paging<DataBaseInfo> paging) throws SQLException { String sql = "SELECT count(1) FROM alldbs a LEFT JOIN dal_group b ON b.id = a.dal_group_id " + appenWhere(paging); log.info("getTotalCount--->" + sql); return this.getCount(sql); }  }
DataBaseDao extends BaseDao { public Long getTotalCount(Paging<DataBaseInfo> paging) throws SQLException { String sql = "SELECT count(1) FROM alldbs a LEFT JOIN dal_group b ON b.id = a.dal_group_id " + appenWhere(paging); log.info("getTotalCount--->" + sql); return this.getCount(sql); }  Long insertDataBaseInfo(DataBaseInfo dataBaseInfo); int[] insertDatabaselist(List<DataBaseInfo> dataBaseInfoList); int updateDataBaseInfo(DataBaseInfo dataBaseInfo); int updateDataBaseInfo(Long id, String dbname, String db_address, String db_port, String db_user,
                                  String db_password, String db_catalog, Integer db_type, String comment, String updateUserNo); int updateDataBaseInfo(Long id, Long groupId, String comment); int updateDataBaseInfo(Long id, String comment); int updateDataBaseInfo(Long id, Long groupId); int deleteDataBaseInfo(Long id); DataBaseInfo getDataBaseInfoByDbId(Long id); DataBaseInfo getDatabaseByName(String name); List<DataBaseInfo> getAllDbByProjectId(long projectId); List<DataBaseInfo> getAllDbByAppId(String appid); List<String> getAllDbAllinOneNames(); List<DataBaseInfo> getGroupDBsByGroup(Long groupId); Long getCountByName(String dbname); Long getCountByIdAndName(Long id, String dbname); List<DataBaseInfo> getAllDbsByDbNames(List<String> dbNames); List<DataBaseInfo> getAllDbsByIdss(List<Long> ids); DataBaseInfo getMasterCologByDatabaseSetId(Long dbset_id); Long getTotalCount(Paging<DataBaseInfo> paging); List<DataBaseView> findDbPageList(Paging<DataBaseInfo> paging); Long getTotalCountByUserId(Paging<DataBaseInfo> paging, Long userId); List<DataBaseView> findDbPageListByUserId(Paging<DataBaseInfo> paging, Long userId); List<DataBaseInfo> getDatabaseListByLikeName(String dbname); }
DataBaseDao extends BaseDao { public Long getTotalCount(Paging<DataBaseInfo> paging) throws SQLException { String sql = "SELECT count(1) FROM alldbs a LEFT JOIN dal_group b ON b.id = a.dal_group_id " + appenWhere(paging); log.info("getTotalCount--->" + sql); return this.getCount(sql); }  Long insertDataBaseInfo(DataBaseInfo dataBaseInfo); int[] insertDatabaselist(List<DataBaseInfo> dataBaseInfoList); int updateDataBaseInfo(DataBaseInfo dataBaseInfo); int updateDataBaseInfo(Long id, String dbname, String db_address, String db_port, String db_user,
                                  String db_password, String db_catalog, Integer db_type, String comment, String updateUserNo); int updateDataBaseInfo(Long id, Long groupId, String comment); int updateDataBaseInfo(Long id, String comment); int updateDataBaseInfo(Long id, Long groupId); int deleteDataBaseInfo(Long id); DataBaseInfo getDataBaseInfoByDbId(Long id); DataBaseInfo getDatabaseByName(String name); List<DataBaseInfo> getAllDbByProjectId(long projectId); List<DataBaseInfo> getAllDbByAppId(String appid); List<String> getAllDbAllinOneNames(); List<DataBaseInfo> getGroupDBsByGroup(Long groupId); Long getCountByName(String dbname); Long getCountByIdAndName(Long id, String dbname); List<DataBaseInfo> getAllDbsByDbNames(List<String> dbNames); List<DataBaseInfo> getAllDbsByIdss(List<Long> ids); DataBaseInfo getMasterCologByDatabaseSetId(Long dbset_id); Long getTotalCount(Paging<DataBaseInfo> paging); List<DataBaseView> findDbPageList(Paging<DataBaseInfo> paging); Long getTotalCountByUserId(Paging<DataBaseInfo> paging, Long userId); List<DataBaseView> findDbPageListByUserId(Paging<DataBaseInfo> paging, Long userId); List<DataBaseInfo> getDatabaseListByLikeName(String dbname);  }