class ServerDao extends BaseDao {

    public int changeServerGroup(long serverId, long serverGroupId) throws SQLException {
        String sql = "UPDATE server SET server_group_id = ? WHERE id = ?";
        return this.updataBysql(sql, Parameter.integerOf(StringUtils.EMPTY, serverGroupId), Parameter.integerOf(StringUtils.EMPTY, serverId));
    }

}