package com.erp.supplier.repository;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.erp.supplier.entity.ProcurementInquiry;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface ProcurementInquiryRepository extends BaseMapper<ProcurementInquiry> {

    IPage<ProcurementInquiry> selectInquiryPage(Page<ProcurementInquiry> page,
                                               @Param("supplierId") Long supplierId,
                                               @Param("inquiryStatus") String inquiryStatus,
                                               @Param("inquiryType") String inquiryType,
                                               @Param("keyword") String keyword,
                                               @Param("startDate") String startDate,
                                               @Param("endDate") String endDate);

    List<ProcurementInquiry> selectBySupplierId(Long supplierId);

    ProcurementInquiry selectByInquiryNo(String inquiryNo);
}
