package com.bonus.canteen.core.supply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.dto.DrpOrderGoodsManagePageDTO;
import com.bonus.canteen.core.supply.dto.DrpPayAndRefundRecordsListDTO;
import com.bonus.canteen.core.supply.po.DrpOrderGoodsRefund;
import com.bonus.canteen.core.supply.vo.DrpOrderGoodsManageDetailVO;
import com.bonus.canteen.core.supply.vo.DrpOrderGoodsManagePageVO;
import com.bonus.canteen.core.supply.vo.DrpOrderGoodsManageTotalVO;
import com.bonus.canteen.core.supply.vo.DrpOrderGoodsRefundListVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpOrderGoodsRefundMapper extends BaseMapper<DrpOrderGoodsRefund> {
   List<DrpOrderGoodsRefundListVO> listRefundRecords(@Param("content") DrpPayAndRefundRecordsListDTO content);

   List<DrpOrderGoodsManagePageVO> getOrderGoodsRefundList(@Param("content") DrpOrderGoodsManagePageDTO content, @Param("type") Integer type);

   DrpOrderGoodsManageDetailVO getOrderGoodsRefundDetail(@Param("id") long id);

   DrpOrderGoodsManageTotalVO getOrderGoodsRefundTotal(@Param("content") DrpOrderGoodsManagePageDTO content, @Param("type") Integer type);
}
