package com.sunxung.factoring.service.financing.review;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.financing.review.ReviewMortgageBasicInfo;
import com.sunxung.factoring.entity.financing.review.ReviewQuotaDisburse;

import java.util.List;

/**
 * @Description : 额度支用-抵质押基础信息service
 * @Author : L.Jia
 * @Date: 2023-12-15 16:41
 */
public interface ReviewMortgageBasicInfoService extends IService<ReviewMortgageBasicInfo> {

    /**
     * 根据额度支用ID获取抵质押信息
     *
     * @param quotaDisburseId 额度支用ID
     * @return
     */
    List<ReviewMortgageBasicInfo> findByQuotaDisburseId(Long quotaDisburseId);

    /**
     * 添加抵质押信息
     *
     * @param mortgageBasicInfo
     * @param quotaDisburse
     */
    void addMortgageInfo(ReviewMortgageBasicInfo mortgageBasicInfo, ReviewQuotaDisburse quotaDisburse);

    /**
     * 根据额度支用ID，删除抵质押信息
     *
     * @param reviewQuotaDisburse
     * @return
     */
    void deleteByQuotaDisburseId(ReviewQuotaDisburse reviewQuotaDisburse);
}
