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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.domain.DrpMenuMaterialSupplier;
import com.bonus.canteen.core.supply.dto.DrpMenuMaterialSupplierQueryDTO;
import com.bonus.canteen.core.supply.dto.DrpSupplierMaterialCertDTO;
import com.bonus.canteen.core.supply.vo.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashSet;
import java.util.List;

@Mapper
public interface DrpMenuMaterialSupplierMapper extends BaseMapper<DrpMenuMaterialSupplier> {
   List<DrpMenuMaterialSupplierDetailVO> detail(@Param("materialId") Long materialId);

   List<DrpMenuMaterialSupplierCanteenVO> getSupplierByMaterialIdAndCanteenId(@Param("content") DrpMenuMaterialSupplierQueryDTO content);

   List<DrpMaterialSupplierVO> getMaterialSupplierByMaterialId(@Param("materialIdList") List<Long> materialIdList);

   HashSet<DrpSupplierSimpleVo> getMaterialSupplierCert(@Param("certId") Long certId, @Param("supplierIdList") List<Long> supplierIdList);

   List<DrpSupplierMaterialCertVO> checkSupplierMaterialCert(@Param("content") DrpSupplierMaterialCertDTO content);
}
