package com.jwipc.tender.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jwipc.tender.entity.Tender;
import com.jwipc.tender.mapper.TenderMapper;
import com.jwipc.tender.model.po.*;
import com.jwipc.tender.model.query.TenderQuery;
import com.jwipc.tender.service.ITenderService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 招标单主表 服务实现类
 * </p>
 *
 * @author shenyang.ou
 * @since 2024-02-29
 */
@Service
public class TenderServiceImpl extends ServiceImpl<TenderMapper, Tender> implements ITenderService {

    @Override
    public List<TenderListPO> findList(Page<TenderListPO> page, TenderQuery query) {
        return this.baseMapper.findList(page, query);
    }

    @Override
    public List<TenderListPO> findBenchmarksList(Page<TenderListPO> page, TenderQuery query) {
        return this.baseMapper.findBenchmarksList(page,query);
    }

    @Override
    public List<TenderDetailByIdPO> zblistFindByList(Long zbId) {
        return baseMapper.zblistFindByList(zbId);
    }

    @Override
    public List<TenderDetailByIdDetailPO> formMaterialDeatilById(Long zbId,String supplierId) {
        return baseMapper.formMaterialDeatilById(zbId,supplierId);
    }

    @Override
    public List<TenderCreatePriceInfoPO> getByTenderId(Long id) {
        return baseMapper.getPricePoByTenderId(id);
    }

    @Override
    public List<TenderDetailByIdPO> getConvertedContractByTenderId(Long tenderId) {
        return baseMapper.getConvertedContractByTenderId(tenderId);
    }

    @Override
    public List<TenderCostContractPO> getTenderCostContractList(Long tenderId) {
        return baseMapper.getTenderCostContractList(tenderId);
    }
}
