DatabaseSetDao extends BaseDao { public List<DatabaseSet> getAllDatabaseSetByGroupId(Long groupId) throws SQLException { String sql = "SELECT id, name, db_type, strategy_type, strategy_source, dynamic_strategy_id,class_name, group_id, update_user_no, update_time FROM databaseset WHERE group_id = ? order by name"; return this.queryBySql(sql, DatabaseSet.class, Parameter.integerOf(StringUtils.EMPTY, groupId)); }  Long insertDatabaseSet(DatabaseSet dbset); int updateDatabaseSet(DatabaseSet dbset); int deleteDatabaseSetById(Long dbsetId); int deleteDatabaseSetEntryByDbsetId(Long dbsetId); DatabaseSet getDatabaseSetById(Long id); DatabaseSet getDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByName(String name); List<DatabaseSet> getAllDatabaseSetByNames(List<String> names); List<DatabaseSet> getAllDatabaseSetById(Long id); List<DatabaseSetView> getAllDatabaseSetByProjectId(Long projectId); List<DatabaseSet> getAllDatabaseSetByGroupId(Long groupId); DatabaseSetEntry getMasterDatabaseSetEntryByDatabaseSetId(Long dbset_id); Long getDbSetTotalCount(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageList(Paging<DatabaseSet> paging); Long getDbSetTotalCountByAppid(Paging<DatabaseSet> paging); List<DatabaseSetView> findDbSetPageListByAppid(Paging<DatabaseSet> paging);  }
@Test public void getAllDatabaseSetByGroupId() throws Exception { List<DatabaseSet> list = databaseSetDao.getAllDatabaseSetByGroupId(36L); System.out.println("getAllDatabaseSetByGroupId :-------> " + list); Assert.assertTrue(list.size() > 0); }