package com.inkasso.factoring.settlement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.settlement.entity.SearchBusiness;
import com.inkasso.factoring.settlement.entity.SettlementBasicInfo;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author zhao.ms
 * @date 2023.11.27
 */
public interface SettlementBasicInfoService extends IService<SettlementBasicInfo> {

    /**
     * 根据id查询所需数据 流程控制反射调用
     *
     * @param id
     * @return
     */
    SettlementBasicInfo get(Long id);

    /**
     * 根据业务编号查询
     *
     * @param businessNumber
     * @return
     */
    List<SettlementBasicInfo> findByBusinessNumber(String businessNumber);
    /**
     * 查询我的所有结算单
     *
     * @param search
     * @return
     */
    List<SettlementBasicInfo> findAllList(SearchBusiness search);

    /**
     * 查询结算单关联分账信息
     *
     * @param ledgerAccountBasicInfoId
     * @return
     */
//    List<BillGoodsInfoVo> findRelationLedgerInfo(Long ledgerAccountBasicInfoId);

    /**
     * 下载结算单所有文件
     * @param id
     * @param response
     */
    void downloadAllSettlementFile(Long id, HttpServletResponse response);
}