package com.inkasso.factoring.biddingManagement.dao;

import com.inkasso.factoring.biddingManagement.entity.CBiddingBasicInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.inkasso.factoring.biddingManagement.entity.SearchBiddingBasic;
import com.inkasso.factoring.biddingManagement.entity.vo.BiddingBasicInfoResultVo;
import com.inkasso.factoring.creditmanagement.entity.vo.UserBiddingProjectsVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 * 招投标管理基本信息表 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-11-16
 */
@Mapper
public interface CBiddingBasicInfoMapper extends BaseMapper<CBiddingBasicInfo> {

    List<BiddingBasicInfoResultVo> findBySearch(SearchBiddingBasic search);

    BiddingBasicInfoResultVo getCreditProjectByBiddingId(Long id);

    /**
     * 通过招投标id获取基础信息
     * @param id
     * @return
     */
    UserBiddingProjectsVo getBasicInfo(Long id);
}
