package com.yc.ship.module.trade.dal.mysql.refund;


import com.yc.ship.framework.mybatis.core.mapper.BaseMapperX;
import com.yc.ship.module.trade.dal.dataobject.refund.RefundRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;


/**
 * 退款记录 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface RefundRecordMapper extends BaseMapperX<RefundRecordDO> {

    Map<String,Object> selectRefundRecordTotalAmount(@Param("refundId") Long refundId);

    Map<String,Long> selectRefundRecordFailCount(@Param("refundId") Long refundId);
    BigDecimal selectMarketRefundAmount(@Param("orderId") Long orderId,@Param("changeOrderId") Long changeOrderId);
    List<RefundRecordDO> selectMarketRefundRecordList(@Param("orderId") Long orderId,@Param("changeOrderId") Long changeOrderId);
}