package com.sunxung.factoring.mapper.ledger;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunxung.factoring.entity.ledger.LedgerAccountBasicInfo;
import com.sunxung.factoring.entity.ledger.vo.GoodsAssignVo;
import com.sunxung.factoring.entity.ledger.vo.SupplierListVo;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author liutao
 * @date 2021.11.11
 */
@Mapper
public interface LedgerAccountBasicInfoMapper extends BaseMapper<LedgerAccountBasicInfo> {

    /**
     * 列表页查询
     *
     * @param search
     * @return
     */
    List<LedgerAccountBasicInfo> findAll(SearchBusinessProcessingTask search);

    /**
     * 货物分配详情查询
     *
     * @param id
     * @return
     */
    List<GoodsAssignVo> findAssignList(Long id);

    /**
     * 供应商查询页面
     *
     * @param search
     * @return
     */
    List<LedgerAccountBasicInfo> findBySupplier(SearchBusinessProcessingTask search);

    /**
     * 获取分账详情信息
     *
     * @param id
     * @return
     */
    LedgerAccountBasicInfo getDetail(Long id);

    /**
     * 获取供应商列表
     *
     * @param businessNumber
     * @return
     */
    List<SupplierListVo> getSupplierList(String businessNumber);
}
