package com.jeeplus.psimanage.dishManage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeeplus.psimanage.dishManage.domain.PsiDishOrderDetail;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 点菜订单明细
 */
public interface PsiDishOrderDetailMapper extends BaseMapper<PsiDishOrderDetail> {

    List<PsiDishOrderDetail> findSummaryByOrderId(@Param("orderId") String orderId);

    List<PsiDishOrderDetail> findAddDishList(@Param("orderId") String orderId);

    List<PsiDishOrderDetail> findReduceDishList(@Param("orderId") String orderId);

    int updateDishSort(@Param("orderId") String orderId, @Param("dishId") String dishId, @Param("dishSort") Integer dishSort,
                       @Param("updateById") String updateById, @Param("updateTime") Date updateTime);
}
