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

import com.yn.bftl.common.modules.subaccount.entity.TemporaryStatement;
import com.yn.bftl.common.modules.subaccount.enums.SubaccountType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * 临时服务费Repository
 *
 * @author chendehuihuo
 * @date 2021/11/22
 **/
@Repository
public interface TemporaryStatementRepository extends JpaRepository<TemporaryStatement, Long> {

    TemporaryStatement findFirstByOrdersId(Long orderId);

    TemporaryStatement findFirstByOrdersIdAndSubaccountType(Long orderId, SubaccountType subaccountType);
}
