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 com.yonge.cooleshow.biz.dal.entity.UserOrderDetail;
import org.apache.ibatis.annotations.Param;
import com.yonge.cooleshow.biz.dal.entity.UserOrderRefund;
import com.yonge.cooleshow.biz.dal.vo.UserOrderRefundVo;
import com.yonge.cooleshow.biz.dal.dto.search.UserOrderRefundSearch;


public interface UserOrderRefundDao extends BaseMapper<UserOrderRefund> {
    /**
     * 查询详情
     *
     * @author liweifan
     * @date 2022-05-09 17:14:30
     * @return: com.yonge.cooleshow.biz.dal.vo.UserOrderRefundVo
     */
    UserOrderRefundVo detail(@Param("id") Long id, @Param("userId") Long userId);

    /**
     * 分页查询
     *
     * @author liweifan
     * @date 2022-05-09 17:14:30
     * @return: com.yonge.cooleshow.biz.dal.vo.UserOrderRefundVo
     */
    List<UserOrderRefundVo> selectPage(@Param("page") IPage page, @Param("param") UserOrderRefundSearch userOrderRefund);

    /***
     * 查询订单中，未退费的商品
     * @author liweifan
     * @param: bizId
     * @updateTime 2022/5/9 18:05
     * @return: java.util.List<com.yonge.cooleshow.biz.dal.entity.UserOrderDetail>
     */
    List<UserOrderDetail> selectOrderRefundDetils(@Param("orderId") Long orderId);
}