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

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.bonus.canteen.core.supply.purchase.domain.bo.DrpMarketPrice;
import com.bonus.canteen.core.supply.purchase.domain.param.DrpMarketPricePageDTO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpMarketPriceDetailPageVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpMarketPricePageVO;
import com.bonus.canteen.core.supply.purchase.domain.vo.DrpMaterialLatestPriceVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DrpMarketPriceMapper extends BaseMapper<DrpMarketPrice> {
   List<DrpMarketPricePageVO> page(@Param("content") DrpMarketPricePageDTO content, @Param("delFlag") Integer delFlag);

   List<DrpMarketPriceDetailPageVO> getDetailListById(@Param("harvestId") String harvestId);

   List<DrpMaterialLatestPriceVO> getLastPriceList(@Param("materialIdList") List<Long> materialIdList, @Param("canteenId") Long canteenId);
}
