package com.sptg.estate.biz.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.mapper.Wrapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.sptg.estate.api.dto.ApplyPayRefundDto;
import com.sptg.estate.api.entity.ApplyPayRefund;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * title: ApplyPayRefundMapper
 * package: com.sptg.estate.biz.mapper
 * description: 支付退款申请 DAO接口
 *
 *
 *
 */
public interface ApplyPayRefundMapper extends BaseMapper<ApplyPayRefund> {

    /**
     * 功能描述:根据条件查询住户
     * @param applyPayRefundDto 住户业务对象
     * @param wrapper 查询条件
     * @return ApplyPayRefund
     *
     *
     */
    ApplyPayRefund findApplyPayRefundByCondition(@Param(value = "dto") ApplyPayRefundDto applyPayRefundDto, @Param(value = "ew") Wrapper<ApplyPayRefund> wrapper);

    /**
     * 根据申请编号更新该条申请的退款回调的数据
     * @param applyPayRefund
     * @return
     */
    Boolean updateApplyPayRefundByRefundNo(@Param("applyPayRefund") ApplyPayRefund applyPayRefund);

}
