package com.sunxung.factoring.service.settlement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.cashflowmanage.vo.BillGoodsInfoVo;
import com.sunxung.factoring.entity.project.vo.BusinessProcessingTaskVo;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;
import com.sunxung.factoring.entity.settlement.SettlementBasicInfo;

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

/**
 * @author liutao
 * @date 2021.09.22
 */
public interface SettlementBillUnitPriceAdjustServiceService extends IService<SettlementBasicInfo> {

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

    /**
     * 根据业务编号查询
     *
     * @param businessNumber
     * @return
     */
    List<SettlementBasicInfo> findByBusinessNumber(String businessNumber);

    /**
     * 查询我已处理的验收单
     *
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findMyCompletedList(SearchBusinessProcessingTask search);

    /**
     * 查询我的所有验收单
     *
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findAllList(SearchBusinessProcessingTask search);

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

    /**
     * 供应商登录查看全部
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findAllListSupplier(SearchBusinessProcessingTask search);

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