package com.hzs.sale.postage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.sale.postage.BdPostageArea;
import com.hzs.sale.postage.mapper.BdPostageAreaMapper;
import com.hzs.sale.postage.service.IBdPostageAreaService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 邮费地区表 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2022-10-27
 */
@Service
public class BdPostageAreaServiceImpl extends ServiceImpl<BdPostageAreaMapper, BdPostageArea> implements IBdPostageAreaService {

    @Override
    public List<BdPostageArea> getPostageArea(Integer tranType, Integer pkPostage, Integer specialArea, Integer pkCountry) {
        return baseMapper.getPostageArea(tranType, pkPostage, specialArea, pkCountry);
    }

    /**
     * 查询专区邮费
     *
     * @param postageId
     * @return
     */
    @Override
    public List<BdPostageArea> selectBySpecialAreaPostage(Long postageId) {
        return baseMapper.selectBySpecialAreaPostage(postageId);
    }
}
