package com.jwipc.shopping.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.shopping.entity.ShoppingReceivingAddress;
import com.jwipc.shopping.mapper.ShoppingReceivingAddressMapper;
import com.jwipc.shopping.model.query.ReceivingAddressQuery;
import com.jwipc.shopping.service.IShoppingReceivingAddressService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 商城收货地址表 服务实现类
 * </p>
 *
 * @author zx
 * @since 2024-03-14
 */
@Service
public class ShoppingReceivingAddressServiceImpl extends ServiceImpl<ShoppingReceivingAddressMapper, ShoppingReceivingAddress> implements IShoppingReceivingAddressService {

    @Resource
    ShoppingReceivingAddressMapper shoppingReceivingAddressMapper;

    @Override
    public List<ShoppingReceivingAddress> selectDataByQuery(Page<ShoppingReceivingAddress> toPage, ReceivingAddressQuery query) {
        return shoppingReceivingAddressMapper.selectDataByQuery(toPage, query);
    }

}
