package com.yc.ship.module.trade.service.order.impl;

import com.yc.ship.module.trade.dal.dataobject.order.TradeOrderCountryDO;
import com.yc.ship.module.trade.service.order.TradeOrderCountryService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.springframework.validation.annotation.Validated;


import com.yc.ship.module.trade.dal.mysql.order.TradeOrderCountryMapper;

import java.util.Collections;
import java.util.List;

/**
 * 订单关联国籍数据 Service 实现类
 *
 * @author 管理员
 */
@Service
@Validated
public class TradeOrderCountryServiceImpl implements TradeOrderCountryService {

    @Resource
    private TradeOrderCountryMapper orderCountryMapper;

    @Override
    public List<TradeOrderCountryDO> getListByOrderIds(List<Long> orderIds) {
        if(orderIds.isEmpty()) {
            return Collections.emptyList();
        }
        return orderCountryMapper.selectListByOrderIds(orderIds);
    }
}