package com.sunxung.factoring.mapper.settlement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
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 org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author liutao
 * @date 2021.09.22
 */
@Mapper
public interface SettlementBasicInfoMapper extends BaseMapper<SettlementBasicInfo> {
    /**
     * 根据id查询所需数据 流程控制反射调用
     *
     * @param id
     * @return
     */
    SettlementBasicInfo getListPage(Long id);

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

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

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

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

}
