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

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

@Mapper
public interface FoodMealOrderMapper extends BaseMapper<FoodMealOrder, FoodMealOrderQueryVO> {

    FoodMealOrder selectByIdForUpdate(@Param("id") String id, @Param("tenantCode") String tenantCode);

    FoodMealOrder selectByTradeOrderIdForUpdate(@Param("tradeOrderId") String tradeOrderId);

    FoodMealOrder selectByUnifiedOrderIdForUpdate(@Param("unifiedOrderId") String unifiedOrderId);

    FoodMealOrder selectByTradeCenterOrderIdForUpdate(@Param("tradeCenterOrderId") String tradeCenterOrderId);
}
