package com.ruoyi.frequency.relationaddress.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.frequency.relationaddress.entity.RelationAddress;

import java.util.List;

/**
 * 地址与相关对象关联;如订单关联地址等Mapper接口
 * 
 * @author liwenlong
 * @date 2023-07-20
 */
public interface RelationAddressMapper  extends BaseMapper<RelationAddress>
{
    /**
     * 查询地址与相关对象关联;如订单关联地址等
     * 
     * @param id 地址与相关对象关联;如订单关联地址等主键
     * @return 地址与相关对象关联;如订单关联地址等
     */
    RelationAddress selectRelationAddressById(Long id);

    /**
     * 查询地址与相关对象关联;如订单关联地址等列表
     * 
     * @param relationAddress 地址与相关对象关联;如订单关联地址等
     * @return 地址与相关对象关联;如订单关联地址等集合
     */
    List<RelationAddress> selectRelationAddressList(RelationAddress relationAddress);

    /**
     * 新增地址与相关对象关联;如订单关联地址等
     * 
     * @param relationAddress 地址与相关对象关联;如订单关联地址等
     * @return 结果
     */
    int insertRelationAddress(RelationAddress relationAddress);

    /**
     * 修改地址与相关对象关联;如订单关联地址等
     * 
     * @param relationAddress 地址与相关对象关联;如订单关联地址等
     * @return 结果
     */
    int updateRelationAddress(RelationAddress relationAddress);

    /**
     * 删除地址与相关对象关联;如订单关联地址等
     * 
     * @param id 地址与相关对象关联;如订单关联地址等主键
     * @return 结果
     */
    int deleteRelationAddressById(Long id);

    /**
     * 批量删除地址与相关对象关联;如订单关联地址等
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    int deleteRelationAddressByIds(Long[] ids);
}
