package com.sunxung.factoring.mapper.purchcontractmanagement;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sunxung.factoring.entity.project.vo.BusinessProcessingTaskVo;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;
import com.sunxung.factoring.entity.purchcontractmanagement.PurchContractManagement;
import com.sunxung.factoring.entity.purchcontractmanagement.PurchContractSupplementInfo;
import com.sunxung.factoring.entity.purchcontractmanagement.vo.PurchContractCompletedVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @Description : 采购合同Mapper类
 * @Author : JiaYf
 * @Date: 2021-09-22 12:40
 */
@Mapper
public interface PurchContractMapper extends BaseMapper<PurchContractManagement> {

    /**
     * 获取采购合同列表页详情
     *
     * @param id
     * @return
     */
    PurchContractManagement getListInfo(Long id);


    /**
     * 查询我已处理列表页
     *
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findMyCompletedList(SearchBusinessProcessingTask search);


    /**
     * 采购合同全部列表   全员可见权限
     *
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findAllList(SearchBusinessProcessingTask search);

    List<PurchContractSupplementInfo> findByManagerId(Long id);

    PurchContractCompletedVo getCompletedPurchContractByBusinessNumber(String businessNumber);
}
