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

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


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

import java.util.List;


/**
 * 订单汇总 Service 实现类
 *
 * @author 管理员
 */
@Service
@Validated
public class TradeOrderTotalServiceImpl implements TradeOrderTotalService {

    @Resource
    private TradeOrderTotalMapper orderTotalMapper;

    @Override
    public List<TradeOrderTotalDO> getByOrderIds(List<Long> orderIds) {
        return orderTotalMapper.selectListByOrderIds(orderIds);
    }

    @Override
    public List<TradeOrderTotalDO> getByOldOrderIds(List<Long> orderIds) {
        return orderTotalMapper.selectListByOldOrderIds(orderIds);
    }
}