package com.zhongshu.card.server.core.dao.payment;

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.server.core.dao.payment.extend.ExpenseFlowDaoExtend;
import com.zhongshu.card.server.core.domain.payment.ExpenseFlow;
import com.zhongshu.card.server.core.domain.payment.PaymentProcess;

import java.util.List;

/**
 * 订单支付过程
 *
 * @author TRX
 * @date 2024/3/21
 */
public interface PaymentProcessDao extends MongoDao<PaymentProcess> {

    PaymentProcess findTopById(String id);

    List<PaymentProcess> findByPaymentNoOrderByCreateTimeAsc(String paymentNo);

    PaymentProcess findTopByPaymentNoAndPaymentTypeOrderByCreateTimeDesc(String paymentNo, PaymentType paymentType);

}
