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

import com.jeesharp.business.modules.food.entity.FoodBookingOrder;
import com.jeesharp.business.modules.food.vo.FoodBookingOrderQueryVO;
import com.jeesharp.framework.mybatis.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 美食预订单表 Mapper；扩展按核销码查询供到店核销。
 *
 * @author jeesharp
 * @since 2026-05-18
 */
@Mapper
public interface FoodBookingOrderMapper extends BaseMapper<FoodBookingOrder, FoodBookingOrderQueryVO> {

    /**
     * 按核销码查询未删除的预订单（至多一条）。
     *
     * @param verifyCode 核销码（大小写与库内一致）
     * @return 实体或 {@code null}
     */
    FoodBookingOrder selectByVerifyCode(@Param("verifyCode") String verifyCode);
}
