package cn.com.poc.thirdparty.resource.demand.pay.service;

import cn.com.poc.thirdparty.resource.demand.pay.entity.DgtoolsPayLogEntity;
import cn.com.yict.framemax.core.exception.BusinessException;
import cn.com.yict.framemax.core.service.BaseService;

/**
 * @author Roger Wu
 */
public interface DgtoolsPayLogService extends BaseService {

    /**
     * 创建支付流水
     *
     * @param payorderSn
     */
    void createPayLog(String payorderSn);

    /**
     * 更新支付流水
     *
     * @param bizUniqueNo
     * @param payLogSn
     */
    void changePayLog2PaidStatus(String bizUniqueNo, String payLogSn);

    /**
     * 根据订单号查询支付记录
     *
     * @param payOrderSn
     * @return
     * @throws BusinessException
     */
    DgtoolsPayLogEntity findPayLogByPayOrderSn(String payOrderSn) throws BusinessException;
}