class ServerDao extends BaseDao {

    public List<Server> getServersByServerGroupId(Long serverGroupId) throws SQLException {
        String sql = "SELECT id, server_group_id, ip, port, comment, insert_time, update_time FROM server where server_group_id = ?";
        return this.queryBySql(sql, Server.class, Parameter.integerOf("", serverGroupId));
    }

}