class ServerDao extends BaseDao {

    public int deleteServerAndServerConfigByServerId(Long serverId) throws SQLException {
        String sql = "DELETE t1, t2 from `server` t1 " +
                "left join `server_config` t2 on  t1.id = t2.server_id " +
                "where t1.id = " + serverId;
        return this.updataBysql(sql);
    }

}