package com.ruoyi.web.modules.pay.mapper;

import org.apache.ibatis.annotations.Param;
import com.ruoyi.web.modules.pay.domain.BizPayRecord;

public interface BizPayRecordMapper
{
    BizPayRecord selectByOutTradeNo(@Param("outTradeNo") String outTradeNo);

    BizPayRecord selectByWxTransactionId(@Param("wxTransactionId") String wxTransactionId);

    BizPayRecord selectLatestByOrderId(@Param("orderId") Long orderId);

    int insert(BizPayRecord record);

    int updateForPrepay(BizPayRecord record);

    int updateForSuccess(@Param("payId") Long payId, @Param("wxTransactionId") String wxTransactionId,
            @Param("notifyTime") java.util.Date notifyTime);
}
