package com.jwipc.shopping.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.shopping.entity.ShoppingReceivingAddress;
import com.jwipc.shopping.model.query.ReceivingAddressQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 商城收货地址表 Mapper 接口
 * </p>
 *
 * @author zx
 * @since 2024-03-14
 */
public interface ShoppingReceivingAddressMapper extends BaseMapper<ShoppingReceivingAddress> {

    /**
     * 列表数据查询
     *
     * @param toPage 分页条件
     * @param query 查询条件
     * @return 结果
     */
    List<ShoppingReceivingAddress> selectDataByQuery(Page<ShoppingReceivingAddress> toPage, @Param("query") ReceivingAddressQuery query);

}
