package com.czg.service.account.mapper;

import com.mybatisflex.core.BaseMapper;
import com.czg.account.entity.ShopTableOrderStatistic;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * 台桌订单统计表 映射层。
 *
 * @author zs
 * @since 2025-03-03
 */
public interface ShopTableOrderStatisticMapper extends BaseMapper<ShopTableOrderStatistic> {

    List<ShopTableOrderStatistic> selectSummary(@Param("shopId") Long shopId, @Param("startTime") String startTime, @Param("endTime") String endTime);

    boolean incrInfo(@Param("shopId") long shopId, @Param("tableId") long tableId, @Param("count") long count, @Param("amount") BigDecimal amount, @Param("date") String date);
}
