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

import com.yc.ship.module.product.controller.admin.pricetemplate.vo.BasicPriceCountryRespVO;
import com.yc.ship.module.product.dal.dataobject.basicpricearea.BasicPriceAreaDO;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;

import com.yc.ship.module.product.dal.mysql.basicpricearea.BasicPriceAreaMapper;

import java.util.List;

/**
 * 区域基准价设置 Service 实现类
 *
 * @author 管理员
 */
@Service
@Validated
public class BasicPriceAreaServiceImpl implements BasicPriceAreaService {

    @Resource
    private BasicPriceAreaMapper basicPriceAreaMapper;


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

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