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.dao.projectAbout.extend.ProjectMainPaySettingDaoExtend;
import com.zhongshu.card.server.core.domain.paySetting.ProjectMainPaySetting;
import com.zhongshu.card.server.core.domain.paySetting.ProjectOrgPaySettingInfo;

public interface ProjectMainPaySettingDao extends MongoDao<ProjectMainPaySetting>, ProjectMainPaySettingDaoExtend {

    ProjectMainPaySetting findTopById(String id);

    ProjectMainPaySetting findTopByProjectOidAndChannelType(String projectOid, PaymentType channelType);

    Integer countByPaySettingInfo(ProjectOrgPaySettingInfo paySettingInfo);

}
