package com.sunxung.factoring.service.biddingManagement;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sunxung.factoring.entity.biddingManagement.BiddingBasicInfoHis;
import com.sunxung.factoring.entity.biddingManagement.CBiddingBasicInfo;
import com.sunxung.factoring.entity.biddingManagement.vo.BiddingBasicInfoResultVo;
import com.sunxung.factoring.entity.project.vo.BusinessProcessingTaskVo;
import com.sunxung.factoring.entity.project.vo.SearchBusinessProcessingTask;

import java.util.List;

/**
 * <p>
 * 招投标管理基本信息表 服务类
 * </p>
 *
 * @author author
 * @since 2023-11-20
 */
public interface ICBiddingBasicInfoService extends IService<CBiddingBasicInfo> {

    //开启流程
    void startProcess(CBiddingBasicInfo biddingBasicInfo);

    /**
     * 流程处理
     *
     * @param biddingBasicInfo
     * @return
     */
    void handleProcess(CBiddingBasicInfo biddingBasicInfo);

    CBiddingBasicInfo get(Long id);


    /**
     * 查询我已完成的数据
     *
     * @param search
     * @return
     */
//    List<BusinessProcessingTaskVo> findMyCompletedList(SearchBusinessProcessingTask search);

    /**
     * 查询全部接口
     *
     * @param search
     * @return
     */
    List<BusinessProcessingTaskVo> findAllList(SearchBusinessProcessingTask search);

    /**
     * 获取授信通过的招投标项目
     * @param id
     * @return
     */
    BiddingBasicInfoResultVo getCreditProjectByBiddingId(Long id);

    /**
     * 查询历史
     * @return
     */
    BiddingBasicInfoResultVo getByHisId(Long hisId);

}
