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

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.zhongshu.card.client.type.ShareOrderType;
import com.zhongshu.card.server.core.domain.pay.ShareOrder;

import java.util.List;

public interface ShareOrderDao extends MongoDao<ShareOrder> {

    ShareOrder findTopByOrderNoAndProjectOidAndOidAndShareOrderType(String orderNo, String projectOid, String oid, ShareOrderType shareOrderType);

    List<ShareOrder> findByOrderNoAndProjectOidAndShareOrderType(String orderNo, String projectOid, ShareOrderType shareOrderType);

    ShareOrder findTopByShareOrderNo(String shareOrderNo);
}
