package com.inkasso.factoring.creditmanagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.inkasso.factoring.creditmanagement.entity.Enterprise;
import com.inkasso.factoring.creditmanagement.entity.ProjectCoreEnterprise;
import com.inkasso.factoring.creditmanagement.entity.ProjectInformation;
import com.inkasso.factoring.creditmanagement.entity.vo.UserBiddingProjectsVo;

import java.util.List;

/**
 * <p>
 * 项目信息 服务类
 * </p>
 *
 * @author liutao
 * @since 2023-11-25
 */
public interface IProjectInformationService extends IService<ProjectInformation> {

    /**
     * 获取该用户授信通过的招投标项目
     * @return
     */
    List<UserBiddingProjectsVo> getUserBiddingProjects();

    /**
     * 新增项目信息
     * @param projectInformation
     */
    ProjectInformation addProject(ProjectInformation projectInformation);

    /**
     * 获取项目补充信息
     * @param id
     * @return
     */
    ProjectInformation getSuppplement(Long id);

    /**
     * 补充信息
     * @param projectInformation
     */
    void supplement(ProjectInformation projectInformation);

    /**
     * 查询采购合同完成的项目
     */
    List<ProjectInformation> getLocalPurchCompletedProject();

    /**
     * 根据供应商id获取该供应商下的全部项目
     * @param supplierId
     * @return
     */
    List<ProjectInformation> getProjectBySupplierId(Long supplierId);

    /**
     * 查看准入详情
     * @param id
     * @return
     */
    ProjectInformation getDetail(Long id);

}
