class GroupDao extends BaseDao {

    public DasGroup getGroupsByDbSetId(Long dbsetId) throws SQLException {
        String sql = "select t1.id, t1.group_name, t1.group_comment, t1.update_user_no, t1.insert_time from dal_group t1 " +
                "inner join databaseset t2 on t2.group_id = t1.id " +
                "where t2.id = " + dbsetId + " limit 1";
        List<DasGroup> list = this.queryBySql(sql, DasGroup.class);
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}