package com.bonus.canteen.core.supply.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.domain.DrpInquirySupplier;
import com.bonus.canteen.core.supply.dto.DrpSupplierSupplyCountDTO;
import com.bonus.canteen.core.supply.po.MinQuoteSupplierModel;
import com.bonus.canteen.core.supply.po.SupplierQuoteStatusAmountModel;
import com.bonus.canteen.core.supply.vo.DrpSupplierQuoteVO;
import com.bonus.canteen.core.supply.vo.QuerySupplierQuoteVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpInquirySupplierMapper extends BaseMapper<DrpInquirySupplier> {
   List<DrpInquirySupplier> selectByBidStatusAndSupplierIds(@Param("supplierIds") List<Long> supplierIds, @Param("bidStatus") Integer bidStatus);

   MinQuoteSupplierModel getMinQuoteSupplier(@Param("inquiryId") String inquiryId);

   List<DrpSupplierQuoteVO> listSupplierQuote(@Param("inquiryId") String inquiryId);

   List<DrpSupplierQuoteVO> listSupplierQuoteAll(@Param("inquiryId") String inquiryId);

   QuerySupplierQuoteVO querySupplierQuote(@Param("inquirySupplierId") Long inquirySupplierId);

   List<SupplierQuoteStatusAmountModel> listSupplierQuoteStatusAmount(@Param("supplierAuthority") Long supplierAuthority, @Param("content") DrpSupplierSupplyCountDTO content, @Param("bidStatusList") List<Integer> bidStatusList);
}
