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

import com.github.microservice.components.data.mongo.mongo.dao.MongoDao;
import com.github.microservice.types.payment.PaymentType;
import com.zhongshu.card.server.core.domain.paySetting.PayShareList;

import java.util.List;

/**
 *
 */
public interface PayShareListDao extends MongoDao<PayShareList> {

    PayShareList findTopById(String id);

    PayShareList findTopByProjectOidAndNameAndPaymentType(String projectOid, String name, PaymentType paymentType);

    List<PayShareList> findByProjectOidAndPaymentTypeOrderBySortAsc(String projectOid, PaymentType paymentType);

}
