package com.yonge.cooleshow.biz.dal.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;
import com.yonge.cooleshow.biz.dal.entity.UserOrderDetail;
import com.yonge.cooleshow.biz.dal.vo.UserOrderDetailVo;
import com.yonge.cooleshow.biz.dal.dto.search.OrderDetailSearch;


public interface UserOrderDetailDao extends BaseMapper<UserOrderDetail>{
	/**
	 * 查询详情
     * @author liweifan
     * @date 2022-03-30 13:53:51
     * @return: com.yonge.cooleshow.biz.dal.vo.OrderDetailVo
	 */
	UserOrderDetailVo detail(@Param("id") Long id);
	/**
	 * 查询详情
	 * @author liweifan
	 * @date 2022-03-30 13:53:51
	 * @return: com.yonge.cooleshow.biz.dal.vo.OrderDetailVo
	 */
	UserOrderDetailVo detailByOrderNo(@Param("orderNo") String orderNo);
	/**
	 * 分页查询
     * @author liweifan
     * @date 2022-03-30 13:53:51
     * @return: com.yonge.cooleshow.biz.dal.vo.OrderDetailVo
	 */
	List<UserOrderDetailVo> selectPage(@Param("page") IPage page, @Param("param") OrderDetailSearch orderDetail);

	List<UserOrderDetailVo> selectList(@Param("param") OrderDetailSearch orderDetail);
	/***
	 * 通过订单号查询订单详情
	 * @author liweifan
	 * @param: orderNo
	 * @updateTime 2022/4/19 14:01
	 * @return: java.util.List<com.yonge.cooleshow.biz.dal.vo.UserOrderDetailVo>
	 */
    List<UserOrderDetailVo> getOrderDetilListByOrderNo(@Param("orderNo")String orderNo);
}