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

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.financing.payment.PaymentApply;
import com.sunxung.factoring.entity.financing.payment.PaymentApproval;
import com.sunxung.factoring.entity.financing.payment.PaymentCondition;

import java.util.List;

/**
 * @Description : 付款申请Service
 * @Author : L.Jia
 * @Date: 2024-02-28 15:16
 */
public interface IPaymentApplyService extends IService<PaymentApply> {

    /**
     * 进入付款申请页面
     *
     * @param id
     * @return
     */
    PaymentApply getToEditPageById(Long id);

    /**
     * 付款申请提交
     *
     * @param paymentApply
     */
    void doEdit(PaymentApply paymentApply);

    /**
     * 进入到付款审核页面
     *
     * @param id
     * @return
     */
    PaymentApproval getToApprovalPageById(Long id);

    /**
     * 付款审核提交
     *
     * @param paymentApproval
     */
    void editApproval(PaymentApproval paymentApproval);

    /**
     * 查询此次付款申请所需的条件
     *
     * @param applyId 付款申请ID
     * @return
     */
    List<PaymentCondition> findConditions(Long applyId);

}
