package com.loan.system.repository;

import com.loan.system.domain.entity.Collateral;
import com.loan.system.domain.entity.Disbursement;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author EdwinXu
 * @date 2020/9/2 - 15:35
 * @Description
 */
public interface DisbursementRepository extends JpaRepository<Disbursement,Long> {

    @Query("select d from Disbursement d where d.caseId = ?1")
    Disbursement findDisbursementDetailsById(Long caseId);
}