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

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

import java.util.List;
import java.util.Map;


/**
 * 供应商退款单 Mapper
 *
 * @author 管理员
 */
@Mapper
public interface SupplierRefundMapper extends BaseMapperX<SupplierRefundDO> {

    List<SupplierRefundDO> selectSupplierOrderToCreateRefund(@Param("refundId") Long refundId,@Param("supplierOrderStatus") Integer supplierOrderStatus);
    Map<String,Long> selectSupplierRefundCount(@Param("refundId") Long refundId);
    Map<String,Long> selectSupplierRefundCountBySupplierOrderId(@Param("supplierOrderId") Long supplierOrderId);
}