package com.jojubanking.boot.module.pay.service.order;

import com.jojubanking.boot.module.pay.dal.dataobject.order.PayOrderExtensionDO;
import com.jojubanking.boot.module.pay.dal.mysql.order.PayOrderExtensionMapper;
import org.springframework.stereotype.Service;
import org.springframework.validation.annotation.Validated;

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

/**
 * 支付订单 Service 实现类
 *
 * @author aquan
 */
@Service
@Validated
public class PayOrderExtensionServiceImpl implements PayOrderExtensionService {

    @Resource
    private PayOrderExtensionMapper orderExtensionMapper;

    @Override
    public PayOrderExtensionDO getOrderExtension(Long id) {
        return orderExtensionMapper.selectById(id);
    }

    @Override
    public List<PayOrderExtensionDO> getOrderExtensionList(Collection<Long> ids) {
        return orderExtensionMapper.selectBatchIds(ids);
    }

}
