package com.bonus.zlpt.bigscreen.service.impl;

import com.bonus.zlpt.bigscreen.domain.MaOrderInfo;
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderInfoVo;
import com.bonus.zlpt.bigscreen.domain.vo.MaOrderVo;
import com.bonus.zlpt.bigscreen.mapper.MaOrderInfoMapper;
import com.bonus.zlpt.bigscreen.service.MaOrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 订单信息表(MaOrderInfo)表服务实现类
 *
 * @author makejava
 * @since 2023-11-30 13:14:19
 */
@Service("maOrderInfoService")
public class MaOrderInfoServiceImpl implements MaOrderInfoService {

    @Autowired
    private MaOrderInfoMapper maOrderInfoMapper;
    /**
     * 获取每个月对应的订单数量
     * @param maOrderInfo
     * @return
     */
    @Override
    public List<MaOrderInfoVo> selectMaOrderInfoList(MaOrderInfo maOrderInfo) {
        return maOrderInfoMapper.selectMaOrderInfoList(maOrderInfo);
    }

    /**
     * 查询今日订单额以及订单数量
     * @param maOrderInfo
     * @return
     */
    @Override
    public List<MaOrderVo> selectTodayList(MaOrderInfo maOrderInfo) {
        return maOrderInfoMapper.selecttodayList(maOrderInfo);
    }
}

