class GroupDatabaseService {

    public boolean isGroupHadDB(Long dbId, Long groupId) throws SQLException {
        DataBaseInfo dataBaseInfo = dataBaseDao.getDataBaseInfoByDbId(dbId);
        if (null != dataBaseInfo && null != dataBaseInfo.getDal_group_id() && dataBaseInfo.getDal_group_id().equals(groupId)) {
            return true;
        }
        return false;
    }

}