package com.jwipc.tender.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.tender.entity.Tender;
import com.jwipc.tender.model.po.*;
import com.jwipc.tender.model.query.TenderQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 招标单主表 Mapper 接口
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-29
 */
public interface TenderMapper extends BaseMapper<Tender> {

    List<TenderListPO> findList(Page<TenderListPO> page,@Param("q") TenderQuery query);

    List<TenderListPO> findBenchmarksList(Page<TenderListPO> page,@Param("q") TenderQuery query);

    List<TenderDetailByIdPO> zblistFindByList(@Param("zbId")Long zbId);

    List<TenderDetailByIdDetailPO> formMaterialDeatilById(@Param("zbId")Long zbId,@Param("supplierId")String supplierId);

    List<TenderCreatePriceInfoPO> getPricePoByTenderId(@Param("id") Long id);

    List<TenderDetailByIdPO> getConvertedContractByTenderId(@Param("tenderId")Long tenderId);

    List<TenderCostContractPO> getTenderCostContractList(@Param("tenderId") Long tenderId);
}
