package com.jeesharp.business.modules.food.mapper;

import com.jeesharp.business.modules.food.vo.FoodCompanyMealStatisticsVO;
import com.jeesharp.business.modules.food.vo.FoodDishSalesStatisticsVO;
import com.jeesharp.business.modules.food.vo.FoodOrderStatisticsVO;
import com.jeesharp.business.modules.food.vo.FoodPaymentStatisticsVO;
import com.jeesharp.business.modules.food.vo.FoodStatisticsQueryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface FoodStatisticsMapper {

    List<FoodOrderStatisticsVO> selectOrderStatistics(@Param("query") FoodStatisticsQueryVO query,
                                                      @Param("tenantCode") String tenantCode);

    List<FoodPaymentStatisticsVO> selectPaymentStatistics(@Param("query") FoodStatisticsQueryVO query,
                                                          @Param("tenantCode") String tenantCode);

    List<FoodCompanyMealStatisticsVO> selectCompanyMealStatistics(@Param("query") FoodStatisticsQueryVO query,
                                                                  @Param("tenantCode") String tenantCode);

    List<FoodDishSalesStatisticsVO> selectDishSalesStatistics(@Param("query") FoodStatisticsQueryVO query,
                                                             @Param("tenantCode") String tenantCode);
}
