class DataBaseSetEntryDao extends BaseDao {

    public DatabaseSetEntryView getDataBaseSetEntryByDbId(Long dataBaseId) throws SQLException {
        String sql = "SELECT t1.id, name, t1.database_type, t1.sharding, t1.db_Id, t1.dbset_id, t1.update_user_no, t1.update_time , t2.db_catalog FROM databasesetentry t1 " +
                "left join alldbs t2 on t2.id = t1.db_Id where t1.db_Id = " + dataBaseId + " limit 1";
        List<DatabaseSetEntryView> list = this.queryBySql(sql, DatabaseSetEntryView.class);
        return CollectionUtils.isNotEmpty(list) ? list.get(0) : null;
    }

}