64 lines
1.7 KiB
Java
64 lines
1.7 KiB
Java
package com.evo.restaurant.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.evo.restaurant.domain.RzRestaurantStatistics;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.Date;
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
/**
|
|
* 餐饮统计Mapper接口
|
|
*
|
|
* @author chenyj
|
|
* @date 2024-11-18
|
|
*/
|
|
public interface RzRestaurantStatisticsMapper extends BaseMapper<RzRestaurantStatistics>
|
|
{
|
|
/**
|
|
* 查询餐饮统计
|
|
*
|
|
* @param id 餐饮统计主键
|
|
* @return 餐饮统计
|
|
*/
|
|
public RzRestaurantStatistics selectRzRestaurantStatisticsById(Long id);
|
|
|
|
/**
|
|
* 查询餐饮统计列表
|
|
*
|
|
* @param rzRestaurantStatistics 餐饮统计
|
|
* @return 餐饮统计集合
|
|
*/
|
|
public List<RzRestaurantStatistics> selectRzRestaurantStatisticsList(RzRestaurantStatistics rzRestaurantStatistics);
|
|
|
|
/**
|
|
* 新增餐饮统计
|
|
*
|
|
* @param rzRestaurantStatistics 餐饮统计
|
|
* @return 结果
|
|
*/
|
|
public int insertRzRestaurantStatistics(RzRestaurantStatistics rzRestaurantStatistics);
|
|
|
|
/**
|
|
* 修改餐饮统计
|
|
*
|
|
* @param rzRestaurantStatistics 餐饮统计
|
|
* @return 结果
|
|
*/
|
|
public int updateRzRestaurantStatistics(RzRestaurantStatistics rzRestaurantStatistics);
|
|
|
|
/**
|
|
* 根据员工ID和时间查询统计信息
|
|
* @param staffId
|
|
* @param date
|
|
* @return
|
|
*/
|
|
public RzRestaurantStatistics selectRzRestaurantStatisticsByUserIdAndDate(@Param("staffId") Long staffId,@Param("date") Date date);
|
|
|
|
public List<Map<String, Object>> selectRzRestaurantStatisticsDate(@Param("date") Date date);
|
|
|
|
public List<RzRestaurantStatistics> selectRzRestaurantStatisticsByDate(Date date);
|
|
|
|
}
|