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

import com.yn.bftl.common.modules.account.entity.Account;
import com.yn.bftl.common.modules.account.entity.TopUpList;
import com.yn.bftl.common.modules.account.enums.TopUpState;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @Author: DoubleHuang
 * @Create: 2021-05-19 14:33
 */
@Repository
public interface TopUpListRepository extends JpaRepository<TopUpList, Long> {

    TopUpList findTopByAccountAndStateOrderByCreatedOnDesc(Account account, TopUpState state);
}
