package com.yn.bftl.thirdparty.common.repository;

import com.yn.bftl.common.modules.configuration.entity.ThirdPartyPaySet;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface ThirdPartyPaySetRepository extends JpaRepository<ThirdPartyPaySet, Long> {

    ThirdPartyPaySet findFirstByCompanyIsNullOrderByIdDesc();

    /**
     * 查询-根据企业ID获取第三方配置
     *
     * @param companyId 企业ID
     * @return 第三方配置
     * @author huabiao
     * @create 2023/6/21  15:27
     */
    ThirdPartyPaySet findFirstByCompanyId(Long companyId);
}