package com.czg.service.account.mapper;

import com.czg.account.dto.calltable.CallRecordVO;
import com.czg.account.vo.CallQueueInfoVO;
import com.mybatisflex.core.BaseMapper;
import com.czg.account.entity.CallQueue;
import com.mybatisflex.core.paginate.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 叫号排号队列表 映射层。
 *
 * @author zs
 * @since 2025-02-21
 */
public interface CallQueueMapper extends BaseMapper<CallQueue> {

    Page<CallRecordVO> selectCallRecord();
    long selectCallRecord_COUNT();

    List<CallQueueInfoVO> selectInfoByOpenId(@Param("shopId") Long shopId, @Param("openId") String openId, @Param("today") String today, @Param("queueId") Long queueId);
}
