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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.domain.DrpSupplierScoreHist;
import com.bonus.canteen.core.supply.dto.DrpSupplierScoreHistPageDTO;
import com.bonus.canteen.core.supply.vo.DrpSupplierScoreHistPageVO;
import com.bonus.canteen.core.supply.vo.DrpSupplierScorePageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpSupplierScoreHistMapper extends BaseMapper<DrpSupplierScoreHist> {
   List<DrpSupplierScoreHistPageVO> pageDrpSupplierScoreHist(@Param("content") DrpSupplierScoreHistPageDTO content);

   DrpSupplierScorePageVO getLeastScore(@Param("supplierId") Long supplierId);
}
