package com.jwipc.tender.service.impl;

import com.jwipc.tender.entity.TenderBid;
import com.jwipc.tender.entity.TenderBidDetail;
import com.jwipc.tender.mapper.TenderBidDetailMapper;
import com.jwipc.tender.model.po.BargainingStatusPO;
import com.jwipc.tender.model.po.BidDetailPO;
import com.jwipc.tender.service.ITenderBidDetailService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Set;

/**
 * <p>
 * 招标项目明细表 服务实现类
 * </p>
 *
 * @author zhangjie
 * @since 2024-03-02
 */
@Service
public class TenderBidDetailServiceImpl extends ServiceImpl<TenderBidDetailMapper, TenderBidDetail> implements ITenderBidDetailService {

    @Override
    public List<BargainingStatusPO> findBargainingStatusCount(Set<Long> tenderIds) {
        return this.baseMapper.findBargainingStatusCount(tenderIds);
    }

    @Override
    public List<TenderBid> getBargainingStatus(Long id) {
        return this.baseMapper.getBargainingStatus(id);
    }

    @Override
    public List<BidDetailPO> getBidTenderListByPurchaseApplyCode(String purchaseApplyCode, String itemNo) {
        return this.baseMapper.getBidTenderListByPurchaseApplyCode(purchaseApplyCode, itemNo);
    }
}
