package com.yc.ship.module.product.service.pricearea;

import com.yc.ship.module.product.controller.admin.pricetemplate.vo.PriceCountryRespVO;
import com.yc.ship.module.product.dal.dataobject.pricearea.PriceAreaDO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;

import com.yc.ship.module.product.dal.mysql.pricearea.PriceAreaMapper;

import java.util.List;

/**
 * 区域加价设置 Service 实现类
 *
 * @author 管理员
 */
@Service
@Validated
public class PriceAreaServiceImpl implements PriceAreaService {

    @Resource
    private PriceAreaMapper priceAreaMapper;


    @Override
    public List<PriceAreaDO> getListByObjectId(Long id) {
        return priceAreaMapper.selectListByObjectId(id);
    }

    @Override
    public List<PriceCountryRespVO> getCountryPriceByObjectId(Long id) {
        return priceAreaMapper.selectCountryPriceByObjectId(id);
    }
}