package com.ruoyi.inventory.service.impl;

import com.ruoyi.inventory.domain.vo.InboundOutboundDetailVO;
import com.ruoyi.inventory.domain.vo.InboundOutboundStatisticsVO;
import com.ruoyi.inventory.mapper.InventoryStatisticsMapper;
import com.ruoyi.inventory.service.IInventoryStatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 出入库统计 Service实现
 */
@Service
public class InventoryStatisticsServiceImpl implements IInventoryStatisticsService {

    @Autowired
    private InventoryStatisticsMapper inventoryStatisticsMapper;

    @Override
    public List<InboundOutboundStatisticsVO> selectInboundOutboundStatistics(InboundOutboundStatisticsVO query) {
        return inventoryStatisticsMapper.selectInboundOutboundStatistics(query);
    }

    @Override
    public List<InboundOutboundDetailVO> selectInboundDetails(InboundOutboundStatisticsVO query) {
        return inventoryStatisticsMapper.selectInboundDetails(query);
    }

    @Override
    public List<InboundOutboundDetailVO> selectOutboundDetails(InboundOutboundStatisticsVO query) {
        return inventoryStatisticsMapper.selectOutboundDetails(query);
    }
}

